From d01cfc96d6952c52b7e98b8cc8962baa8f2d7f8e Mon Sep 17 00:00:00 2001 From: Arun Sathiya Date: Mon, 5 Feb 2024 23:55:40 -0800 Subject: [PATCH] ci: Use GITHUB_OUTPUT envvar instead of set-output command `save-state` and `set-output` commands used in GitHub Actions are deprecated and [GitHub recommends using environment files](https://github.blog/changelog/2023-07-24-github-actions-update-on-save-state-and-set-output-commands/). This PR updates the usage of `::set-output` to `"$GITHUB_OUTPUT"` Instructions for envvar usage from GitHub docs: https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-output-parameter --- .github/workflows/node.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml index e21ee7f7..1d9167a3 100644 --- a/.github/workflows/node.yml +++ b/.github/workflows/node.yml @@ -39,8 +39,8 @@ jobs: run: |- os=${{ matrix.os }} node=${{ matrix.node-version }} - echo "::set-output name=os::${os/-latest/}" - echo "::set-output name=node::node_${node//[.*]/}" + echo "os=${os/-latest/}" >> "$GITHUB_OUTPUT" + echo "node=node_${node//[.*]/}" >> "$GITHUB_OUTPUT" shell: bash - uses: codecov/codecov-action@v2 with: