Skip to content

Commit 9a0b456

Browse files
billputerrsotnychenko
authored andcommitted
Fix deprecated set-output commands
This fixes the deprecated set-output commands by using the new GITHUB_OUTPUT environment file. > The set-output command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands Signed-off-by: Rostyslav Sotnychenko <[email protected]> Fixes #4 Fixes #5
1 parent 06e6b80 commit 9a0b456

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- uses: actions/checkout@v1
4141
- id: set_state_in_progress
4242
name: Set deployment status to [in_progress]
43-
uses: rsotnychenko/[email protected].0
43+
uses: rsotnychenko/[email protected].1
4444
with:
4545
run_id: ${{ github.run_id }}
4646
status: in_progress
@@ -56,7 +56,7 @@ jobs:
5656
- id: set_state_final
5757
if: always()
5858
name: Set deployment status
59-
uses: rsotnychenko/[email protected].0
59+
uses: rsotnychenko/[email protected].1
6060
with:
6161
status: ${{ job.status }}
6262
run_id: ${{ github.run_id }}

entrypoint.sh

+7-7
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ curl --fail \
4646
}
4747
EOF
4848

49-
echo ::set-output name=deployment_id::$(get_from_event '.deployment.id')
50-
echo ::set-output name=description::$(get_from_event '.deployment.description')
51-
echo ::set-output name=state::${INPUT_STATUS}
52-
echo ::set-output name=ref::$(get_from_event '.deployment.ref')
53-
echo ::set-output name=sha::$(get_from_event '.deployment.sha')
54-
echo ::set-output name=environment::$(get_from_event '.deployment.environment')
55-
echo ::set-output name=payload::$(get_from_event '.deployment.payload')
49+
echo "deployment_id=$(get_from_event '.deployment.id')" >> $GITHUB_OUTPUT
50+
echo "description=$(get_from_event '.deployment.description')" >> $GITHUB_OUTPUT
51+
echo "state=${INPUT_STATUS}" >> $GITHUB_OUTPUT
52+
echo "ref=$(get_from_event '.deployment.ref')" >> $GITHUB_OUTPUT
53+
echo "sha=$(get_from_event '.deployment.sha')" >> $GITHUB_OUTPUT
54+
echo "environment=$(get_from_event '.deployment.environment')" >> $GITHUB_OUTPUT
55+
echo "payload=$(get_from_event '.deployment.payload')" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)