From 09562a1ecce829dd199559b7b1698c56e6ca3639 Mon Sep 17 00:00:00 2001 From: Arun Sathiya Date: Mon, 22 Jan 2024 09:04:24 -0800 Subject: [PATCH] ci: Use GITHUB_OUTPUT envvar instead of set-output command (#480) Summary: `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 Pull Request resolved: https://github.com/facebook/proxygen/pull/480 Reviewed By: bigfootjon Differential Revision: D52918113 Pulled By: jbeshay fbshipit-source-id: bfc05a7e25f8401c1c6501f2c467fb4ead091102 --- .github/workflows/TagIt.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/TagIt.yml b/.github/workflows/TagIt.yml index 2c4b889d6d..af6d7ff581 100644 --- a/.github/workflows/TagIt.yml +++ b/.github/workflows/TagIt.yml @@ -19,14 +19,14 @@ jobs: FILE_NAME=${GITHUB_REPOSITORY#*/}-${GITHUB_REF##*/} git archive ${{ github.ref }} -o ${FILE_NAME}.zip git archive ${{ github.ref }} -o ${FILE_NAME}.tar.gz - echo "::set-output name=file_name::${FILE_NAME}" + echo "file_name=${FILE_NAME}" >> $GITHUB_OUTPUT - name: Compute digests id: compute_digests run: | - echo "::set-output name=tgz_256::$(openssl dgst -sha256 ${{ steps.archive_project.outputs.file_name }}.tar.gz)" - echo "::set-output name=tgz_512::$(openssl dgst -sha512 ${{ steps.archive_project.outputs.file_name }}.tar.gz)" - echo "::set-output name=zip_256::$(openssl dgst -sha256 ${{ steps.archive_project.outputs.file_name }}.zip)" - echo "::set-output name=zip_512::$(openssl dgst -sha512 ${{ steps.archive_project.outputs.file_name }}.zip)" + echo "tgz_256=$(openssl dgst -sha256 ${{ steps.archive_project.outputs.file_name }}.tar.gz)" >> $GITHUB_OUTPUT + echo "tgz_512=$(openssl dgst -sha512 ${{ steps.archive_project.outputs.file_name }}.tar.gz)" >> $GITHUB_OUTPUT + echo "zip_256=$(openssl dgst -sha256 ${{ steps.archive_project.outputs.file_name }}.zip)" >> $GITHUB_OUTPUT + echo "zip_512=$(openssl dgst -sha512 ${{ steps.archive_project.outputs.file_name }}.zip)" >> $GITHUB_OUTPUT - name: Create Release id: create_release uses: actions/create-release@v1