From 72cb6da8103f0db81865b159b99e18db7cfc1d49 Mon Sep 17 00:00:00 2001 From: Arun Sathiya Date: Sat, 20 Jan 2024 00:55:49 -0800 Subject: [PATCH] ci: use GITHUB_OUTPUT envvar instead of set-output command (#271) `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/preview-deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/preview-deploy.yml b/.github/workflows/preview-deploy.yml index 08c4e7a75..1ea5b756d 100644 --- a/.github/workflows/preview-deploy.yml +++ b/.github/workflows/preview-deploy.yml @@ -19,7 +19,7 @@ jobs: - name: Save PR id id: pr - run: echo "::set-output name=id::$(> "$GITHUB_OUTPUT" - name: Download dist artifact uses: dawidd6/action-download-artifact@v2 @@ -73,7 +73,7 @@ jobs: - name: Save PR id id: pr - run: echo "::set-output name=id::$(> "$GITHUB_OUTPUT" - name: The job failed uses: actions-cool/maintain-one-comment@v2