From f53eb0b79a613dd7405115630b8752f6c45c301a Mon Sep 17 00:00:00 2001 From: Arun Sathiya Date: Tue, 11 Jun 2024 04:03:48 -0700 Subject: [PATCH] ci: Use GITHUB_OUTPUT envvar instead of set-output command (#2261) `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 Co-authored-by: Henry van der Vegte --- .github/workflows/ingestion_client.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ingestion_client.yaml b/.github/workflows/ingestion_client.yaml index 92100e30e..1477b2d36 100644 --- a/.github/workflows/ingestion_client.yaml +++ b/.github/workflows/ingestion_client.yaml @@ -23,9 +23,9 @@ jobs: set -u -e -o pipefail version=$(cat ./samples/ingestion/ingestion-client/Setup/ArmTemplateBatch.json | jq -r .variables.Version) versionRealtime=$(cat ./samples/ingestion/ingestion-client/Setup/ArmTemplateRealtime.json | jq -r .variables.Version) - echo ::set-output name=version::$version + echo version=$version >> "$GITHUB_OUTPUT" echo "Batch template: ${version}" - echo ::set-output name=versionRealtime::$versionRealtime + echo versionRealtime=$versionRealtime >> "$GITHUB_OUTPUT" echo "Realtime template: ${versionRealtime}" - name: Verify Release Versions