From 881ed2353ef2026919def708649b346f8afffafc Mon Sep 17 00:00:00 2001 From: Arun Sathiya Date: Sat, 20 Jan 2024 09:04:41 -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/update-version.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-version.yaml b/.github/workflows/update-version.yaml index c750fdd..5dd01d2 100644 --- a/.github/workflows/update-version.yaml +++ b/.github/workflows/update-version.yaml @@ -29,7 +29,7 @@ jobs: exit 1 fi echo "Extracted the version number '${version_number}'." - echo "::set-output name=yb_version::${version_number}" + echo "yb_version=${version_number}" >> "$GITHUB_OUTPUT" - name: "Update the version" id: update-version continue-on-error: true