Skip to content

Commit 27f4e8e

Browse files
authored
fix: replace set-output with $GITHUB_OUTPUT
"Starting today runner version 2.298.2 will begin to warn you if you use the save-state or set-output commands via stdout." [https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/] And wouldn't you know it... All my jobs warning endlessly. This modifies the `lsb-release` step to use the new way of providing outputs.
1 parent f950351 commit 27f4e8e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -338,11 +338,11 @@ runs:
338338
- id: lsb-release
339339
run: |
340340
source /etc/lsb-release
341-
echo "::set-output name=id::${DISTRIB_ID}"
342-
echo "::set-output name=release::${DISTRIB_RELEASE}"
343-
echo "::set-output name=codename::${DISTRIB_CODENAME}"
344-
echo "::set-output name=description::${DISTRIB_DESCRIPTION}"
345-
echo "::set-output name=id-release::${DISTRIB_ID}-${DISTRIB_DESCRIPTION}"
341+
echo "id=${DISTRIB_ID}" >> $GITHUB_OUTPUT
342+
echo "release=${DISTRIB_RELEASE}" >> $GITHUB_OUTPUT
343+
echo "codename=${DISTRIB_CODENAME}" >> $GITHUB_OUTPUTENV
344+
echo "description=${DISTRIB_DESCRIPTION}" >> $GITHUB_OUTPUT
345+
echo "id-release=${DISTRIB_ID}-${DISTRIB_DESCRIPTION}" >> $GITHUB_OUTPUT
346346
shell: bash
347347
- uses: actions/cache@v3
348348
with:

0 commit comments

Comments
 (0)