Skip to content

Commit

Permalink
🔧 Run nightly build only when there are changes closes #51
Browse files Browse the repository at this point in the history
Signed-off-by: Marcus Fihlon <[email protected]>
  • Loading branch information
McPringle committed May 2, 2024
1 parent 90dbafd commit cd7bad1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docker-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
continue-on-error: true
name: check latest commit is less than a day
run: |
sha=$(git rev-list --after="5 minutes" ${{ github.sha }})
sha=$(git rev-list --after="24 hours" ${{ github.sha }})
if test -z $sha
then
echo "should_run=false" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit cd7bad1

Please sign in to comment.