Skip to content

Commit 489b320

Browse files
authored
ci: modernize run-approved step
1 parent 339f0cb commit 489b320

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/container.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@ jobs:
1515
outputs:
1616
run-approved: ${{ steps.confirm-run.outputs.run-approved }}
1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v4
1919
- id: confirm-run
2020
continue-on-error: true
2121
name: Check last commit is <24h old
2222
if: ${{ github.event_name == 'schedule' }}
23-
run: test -z $(git ref-list --after="24 hours" ${{ github.sha }}) && echo "::set-output name=run-approved::false"
23+
run: |
24+
test -z $(git ref-list --after="24 hours" ${{ github.sha }}) && echo "run-approved=false" >> $GITHUB_OUTPUT
2425
2526
build-container:
2627
name: Build and push container

0 commit comments

Comments
 (0)