Skip to content

Commit

Permalink
fix: now exits workflow if new commits are detected
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenykh committed Aug 29, 2024
1 parent 98e31de commit 6afe462
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,13 @@ jobs:
run: npm run githubActionStart
env:
TOKEN: ${{ secrets.TOKEN }}
- name: Check for new commits today
id: check-new-commits
uses: adriangl/check-new-commits-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
seconds: 86400 # One day in seconds
branch: "main"
- name: Exit code
if: ${{ steps.check-new-commits.outputs.has-new-commits == 'true' }}
run: exit 0

0 comments on commit 6afe462

Please sign in to comment.