From 386afaff70bdee22e2c8884ac6ff7336631365f8 Mon Sep 17 00:00:00 2001 From: sockmaster27 <61235930+sockmaster27@users.noreply.github.com> Date: Sun, 17 Mar 2024 16:54:05 +0100 Subject: [PATCH] fix: use `$GITHUB_OUTPUT` --- .github/workflows/node.js.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 5edf921..c8f815c 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -20,18 +20,18 @@ jobs: id: package # Reads the contents of `pacakge.json` into `steps.package.outputs.content` run: | - content=`cat ./package.json` - content="${content//'%'/'%25'}" - content="${content//$'\n'/'%0A'}" - content="${content//$'\r'/'%0D'}" - echo "::set-output name=content::$content" + { + echo 'content<> "$GITHUB_OUTPUT" - name: Extract minimum version id: minver # Reads the contents of the `engines.vscode` field into `steps.minver.outputs.version` with the leading ^ removed. run: | version=${{ fromJson(steps.package.outputs.content).engines.vscode }} version=${version#^} - echo "::set-output name=version::$version" + echo "version=$version" >> "$GITHUB_OUTPUT" check: runs-on: ubuntu-latest