We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f338f7 commit 6049872Copy full SHA for 6049872
.github/workflows/publish_release.yml
@@ -42,7 +42,13 @@ jobs:
42
- id: should_run
43
continue-on-error: true
44
name: check latest commit is less than a day
45
- run: test -z $(git rev-list --after="24 hours" ${{ github.sha }}) && echo "::set-output name=should_run::false"
+ run: |
46
+ test -z $(git rev-list --after="24 hours" ${{ github.sha }}) \
47
+ && echo "::set-output name=should_run::false" \
48
+ || (gh run cancel ${{ github.run_id }} \
49
+ && gh run watch ${{ github.run_id }})
50
+ env:
51
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52
publish_release:
53
needs: check_date
54
if: ${{ github.event_name == 'workflow_dispatch' || needs.check_date.outputs.should_run != 'false' }}
0 commit comments