Skip to content

Commit

Permalink
Fix deprecated usage of GitHub action 'set-output'
Browse files Browse the repository at this point in the history
  • Loading branch information
SSoelvsten committed Apr 30, 2024
1 parent f409f0f commit d5550b6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

steps:
- id: identify
run: echo "##[set-output name=branch;]$(echo ${GITHUB_HEAD_REF#refs/heads/})"
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT

outputs:
branch: ${{ steps.identify.outputs.branch }}
Expand All @@ -22,8 +22,7 @@ jobs:

steps:
- id: identify
run: |
echo "##[set-output name=remote;]$(if [ ${GITHUB_REPOSITORY} == 'SSoelvsten/adiar' ]; then echo 'origin'; else echo '${GITHUB_REPOSITORY}'; fi)"
run: echo "remote=${GITHUB_REPOSITORY}" >> $GITHUB_OUTPUT

outputs:
remote: ${{ steps.identify.outputs.remote }}
Expand Down

0 comments on commit d5550b6

Please sign in to comment.