Skip to content

Commit

Permalink
ci: Use GITHUB_OUTPUT envvar instead of set-output command
Browse files Browse the repository at this point in the history
`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 <arun@arun.blog>
  • Loading branch information
arunsathiya committed Jan 20, 2024
1 parent e8d41e7 commit 950b04d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/device-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 950b04d

Please sign in to comment.