From 950b04d92e98619982038997ba1f6c7ec455e668 Mon Sep 17 00:00:00 2001 From: Arun Sathiya Date: Sat, 20 Jan 2024 09:49:44 -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 Signed-off-by: Arun --- .github/workflows/build-snapshot.yml | 2 +- .github/workflows/build.yml | 2 +- .github/workflows/device-tests.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-snapshot.yml b/.github/workflows/build-snapshot.yml index 7f61c14..a3bbd06 100644 --- a/.github/workflows/build-snapshot.yml +++ b/.github/workflows/build-snapshot.yml @@ -126,7 +126,7 @@ jobs: if [ "$API_LEVEL" -ge "28" ]; then TARGET="google_apis" fi - echo "::set-output name=TARGET::$TARGET" + echo "TARGET=$TARGET" >> "$GITHUB_OUTPUT" - name: Run tests uses: reactivecircus/android-emulator-runner@v2 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a1a2d3a..88f488d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -126,7 +126,7 @@ jobs: if [ "$API_LEVEL" -ge "28" ]; then TARGET="google_apis" fi - echo "::set-output name=TARGET::$TARGET" + echo "TARGET=$TARGET" >> "$GITHUB_OUTPUT" - name: Run tests uses: reactivecircus/android-emulator-runner@v2 diff --git a/.github/workflows/device-tests.yml b/.github/workflows/device-tests.yml index 07ffeff..6576055 100644 --- a/.github/workflows/device-tests.yml +++ b/.github/workflows/device-tests.yml @@ -59,7 +59,7 @@ jobs: if [ "$API_LEVEL" -ge "29" ]; then TARGET="google_apis" fi - echo "::set-output name=TARGET::$TARGET" + echo "TARGET=$TARGET" >> "$GITHUB_OUTPUT" - name: Run device tests uses: reactivecircus/android-emulator-runner@v2