From cf045051bc6927123700bf2d8a2f33d714c7ea96 Mon Sep 17 00:00:00 2001 From: Arun Sathiya Date: Fri, 19 Jan 2024 22:55:20 -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/pypi-publish.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pypi-publish.yaml b/.github/workflows/pypi-publish.yaml index 415a4370..6a8a547c 100644 --- a/.github/workflows/pypi-publish.yaml +++ b/.github/workflows/pypi-publish.yaml @@ -17,7 +17,7 @@ jobs: run: | realversion="${GITHUB_REF/refs\/tags\//}" realversion="${realversion//v/}" - echo "::set-output name=VERSION::$realversion" + echo "VERSION=$realversion" >> "$GITHUB_OUTPUT" - name: Set the version for publishing uses: ciiiii/toml-editor@1.0.0