Skip to content

Commit 0595978

Browse files
(MAINT) - update set output to use github output
1 parent 53c7a5f commit 0595978

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/workflow-restarter.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ jobs:
3030
# IF `--attempts` returns a non-zero exit code, then keep retrying
3131
status_code=$(gh run view ${{ inputs.run_id }} --repo ${{ inputs.repo }} --attempt ${{ inputs.retries }} --json status) || {
3232
echo "Retry count is within limit"
33-
echo "::set-output name=should_retry::true"
33+
echo "should_retry=true" >> $GITHUB_OUTPUT
3434
exit 0
3535
}
3636
3737
# ELSE `--attempts` returns a zero exit code, so stop retrying
3838
echo "Retry count has reached the limit"
39-
echo "::set-output name=should_retry::false"
39+
echo "should_retry=false" >> $GITHUB_OUTPUT
4040
env:
4141
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4242

0 commit comments

Comments
 (0)