Skip to content

Commit

Permalink
ci(GHA): replaced set-output with GITHUB_OUTPUT (#32)
Browse files Browse the repository at this point in the history
Reason: deprecated, will be removed in 2023-05-31.

Details: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

Command: grep -R -l "::set-output" . | xargs -n 1 sed -E -i '' 's/"?::set-output name=([^:]+)::([^"]+)"?$/"\1=\2" >> $GITHUB_OUTPUT/g'
  • Loading branch information
pregnor authored Dec 7, 2022
1 parent 33b8a2d commit c211d5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
password: ${{ secrets.CR_PAT }}
- name: Determine image tag
id: imagetag
run: echo "::set-output name=value::$(if [ $REF_TYPE = tag ]; then echo $REF_NAME | sed 's/server-//g'; elif [ $REF_NAME = master ]; then echo latest; else echo $REF_NAME; fi)"
run: echo "value=$(if [ $REF_TYPE = tag ]; then echo $REF_NAME | sed 's/server-//g'; elif [ $REF_NAME = master ]; then echo latest; else echo $REF_NAME; fi)" >> $GITHUB_OUTPUT
env:
REF_NAME: ${{ github.ref_name }}
REF_TYPE: ${{ github.ref_type }}
Expand Down

0 comments on commit c211d5c

Please sign in to comment.