From d3ceb53a98fffbdb3d9c9a535c513ef26671eb3a Mon Sep 17 00:00:00 2001 From: Arun Sathiya Date: Fri, 19 Jan 2024 22:50:09 -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/test-e2e-composable.yml | 2 +- .github/workflows/test-e2e-options.yml | 2 +- .github/workflows/test-e2e-ssr.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-e2e-composable.yml b/.github/workflows/test-e2e-composable.yml index 0f1cab14..3504b667 100644 --- a/.github/workflows/test-e2e-composable.yml +++ b/.github/workflows/test-e2e-composable.yml @@ -38,7 +38,7 @@ jobs: - name: Get pnpm store directory id: pnpm-cache run: | - echo "::set-output name=pnpm_cache_dir::$(pnpm store path)" + echo "pnpm_cache_dir=$(pnpm store path)" >> "$GITHUB_OUTPUT" - name: Cache pnpm modules uses: actions/cache@v2 diff --git a/.github/workflows/test-e2e-options.yml b/.github/workflows/test-e2e-options.yml index 56f4f209..c0a84607 100644 --- a/.github/workflows/test-e2e-options.yml +++ b/.github/workflows/test-e2e-options.yml @@ -38,7 +38,7 @@ jobs: - name: Get pnpm store directory id: pnpm-cache run: | - echo "::set-output name=pnpm_cache_dir::$(pnpm store path)" + echo "pnpm_cache_dir=$(pnpm store path)" >> "$GITHUB_OUTPUT" - name: Cache pnpm modules uses: actions/cache@v2 diff --git a/.github/workflows/test-e2e-ssr.yml b/.github/workflows/test-e2e-ssr.yml index 21e02ed2..8c661fa2 100644 --- a/.github/workflows/test-e2e-ssr.yml +++ b/.github/workflows/test-e2e-ssr.yml @@ -38,7 +38,7 @@ jobs: - name: Get pnpm store directory id: pnpm-cache run: | - echo "::set-output name=pnpm_cache_dir::$(pnpm store path)" + echo "pnpm_cache_dir=$(pnpm store path)" >> "$GITHUB_OUTPUT" - name: Cache pnpm modules uses: actions/cache@v2 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a6222407..ae0e14b1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,7 +35,7 @@ jobs: - name: Get pnpm store directory id: pnpm-cache run: | - echo "::set-output name=pnpm_cache_dir::$(pnpm store path)" + echo "pnpm_cache_dir=$(pnpm store path)" >> "$GITHUB_OUTPUT" - name: Cache pnpm modules uses: actions/cache@v2