Skip to content

Commit

Permalink
publish_release pipeline fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stas-panasiuk committed Oct 17, 2024
1 parent 61b8b63 commit df0da56
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ on:
type: boolean

jobs:
# checks if there's a commit in last 24hr
# checks if there's a commit in last 24hr
check_date:
runs-on: ubuntu-latest
outputs:
Expand All @@ -44,9 +44,9 @@ jobs:
name: check latest commit is less than a day
run: |
test -z $(git rev-list --after="24 hours" ${{ github.sha }}) \
&& echo "::set-output name=should_run::false" \
|| (gh run cancel ${{ github.run_id }} \
&& gh run watch ${{ github.run_id }})
&& (gh run cancel ${{ github.run_id }} \
&& gh run watch ${{ github.run_id }}) \
|| echo "::set-output name=should_run::false"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish_release:
Expand Down

0 comments on commit df0da56

Please sign in to comment.