Skip to content

Commit 59cd7b5

Browse files
committed
GH Actions: fix use of deprecated set-output
GitHub has deprecated the use of `set-output` (and `set-state`) in favour of new environment files. This commit updates workflows to use the new methodology. Refs: * https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ * https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#environment-files
1 parent a54c72d commit 59cd7b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/promote-tag.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
OUTPUT="${OUTPUT//'%'/'%25'}"
2727
OUTPUT="${OUTPUT//$'\n'/'%0A'}"
2828
OUTPUT="${OUTPUT//$'\r'/'%0D'}"
29-
echo "::set-output name=body::$OUTPUT"
29+
echo "body=$OUTPUT" >> $GITHUB_OUTPUT
3030
- name: Debug Changelog
3131
run: echo "Extracted this Changelog \n ${{ steps.changelog.outputs.body }}"
3232
- uses: ncipollo/release-action@v1

0 commit comments

Comments
 (0)