Skip to content

Commit

Permalink
ci: modernize run-approved step
Browse files Browse the repository at this point in the history
  • Loading branch information
bigspeedfpv authored Jan 13, 2025
1 parent 339f0cb commit 489b320
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ jobs:
outputs:
run-approved: ${{ steps.confirm-run.outputs.run-approved }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- id: confirm-run
continue-on-error: true
name: Check last commit is <24h old
if: ${{ github.event_name == 'schedule' }}
run: test -z $(git ref-list --after="24 hours" ${{ github.sha }}) && echo "::set-output name=run-approved::false"
run: |
test -z $(git ref-list --after="24 hours" ${{ github.sha }}) && echo "run-approved=false" >> $GITHUB_OUTPUT
build-container:
name: Build and push container
Expand Down

0 comments on commit 489b320

Please sign in to comment.