From 0f4288ecbaf23773c6856eecb4e9ea255dcac6da Mon Sep 17 00:00:00 2001 From: Arun Sathiya Date: Thu, 14 Nov 2024 17:23:40 +0530 Subject: [PATCH] ci: Use GITHUB_OUTPUT envvar instead of set-output command (#446) `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/e2e-ci.yml | 2 +- .github/workflows/release-ci.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e-ci.yml b/.github/workflows/e2e-ci.yml index d7467e9c8..9705350c5 100644 --- a/.github/workflows/e2e-ci.yml +++ b/.github/workflows/e2e-ci.yml @@ -55,7 +55,7 @@ jobs: id: get-version run: | version=$(docker run ${{ steps.build-device-client.outputs.imageid }} --version) - echo "::set-output name=version::$version" + echo "version=$version" >> "$GITHUB_OUTPUT" build-docker-image-ubuntu-x86_64: runs-on: ubuntu-latest if: (github.event_name == 'push') || ((github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name != github.repository)) diff --git a/.github/workflows/release-ci.yml b/.github/workflows/release-ci.yml index 985a2782e..0395b1364 100644 --- a/.github/workflows/release-ci.yml +++ b/.github/workflows/release-ci.yml @@ -52,7 +52,7 @@ jobs: id: get-version run: | version=$(docker run ${{ steps.build-device-client.outputs.imageid }} --version) - echo "::set-output name=version::$version" + echo "version=$version" >> "$GITHUB_OUTPUT" build-docker-image-ubuntu-x86_64: runs-on: ubuntu-latest if: github.event.pull_request.merged == true