From 27f4e8e7ab94459d3a1ce926315dbf5c32caadec Mon Sep 17 00:00:00 2001 From: Wouter Deconinck Date: Thu, 13 Oct 2022 19:36:21 -0500 Subject: [PATCH 1/2] 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. --- action.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/action.yml b/action.yml index 8362388..baa1ba3 100644 --- a/action.yml +++ b/action.yml @@ -338,11 +338,11 @@ runs: - id: lsb-release run: | source /etc/lsb-release - echo "::set-output name=id::${DISTRIB_ID}" - echo "::set-output name=release::${DISTRIB_RELEASE}" - echo "::set-output name=codename::${DISTRIB_CODENAME}" - echo "::set-output name=description::${DISTRIB_DESCRIPTION}" - echo "::set-output name=id-release::${DISTRIB_ID}-${DISTRIB_DESCRIPTION}" + echo "id=${DISTRIB_ID}" >> $GITHUB_OUTPUT + echo "release=${DISTRIB_RELEASE}" >> $GITHUB_OUTPUT + echo "codename=${DISTRIB_CODENAME}" >> $GITHUB_OUTPUTENV + echo "description=${DISTRIB_DESCRIPTION}" >> $GITHUB_OUTPUT + echo "id-release=${DISTRIB_ID}-${DISTRIB_DESCRIPTION}" >> $GITHUB_OUTPUT shell: bash - uses: actions/cache@v3 with: From 2e508c8d8287a2f1b851a3c4b2e4c0c76fdd1669 Mon Sep 17 00:00:00 2001 From: Wouter Deconinck Date: Thu, 13 Oct 2022 19:38:52 -0500 Subject: [PATCH 2/2] fix: typo corrected --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index baa1ba3..e60c346 100644 --- a/action.yml +++ b/action.yml @@ -340,7 +340,7 @@ runs: source /etc/lsb-release echo "id=${DISTRIB_ID}" >> $GITHUB_OUTPUT echo "release=${DISTRIB_RELEASE}" >> $GITHUB_OUTPUT - echo "codename=${DISTRIB_CODENAME}" >> $GITHUB_OUTPUTENV + echo "codename=${DISTRIB_CODENAME}" >> $GITHUB_OUTPUT echo "description=${DISTRIB_DESCRIPTION}" >> $GITHUB_OUTPUT echo "id-release=${DISTRIB_ID}-${DISTRIB_DESCRIPTION}" >> $GITHUB_OUTPUT shell: bash