From a82d1d8084c9f924e468650658d2a04c101b8564 Mon Sep 17 00:00:00 2001 From: Arun Sathiya Date: Mon, 5 Feb 2024 23:56:24 -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/workflow.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index f17f79e..13d3edd 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -41,8 +41,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@v1 with: