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 69eb3d8 commit cb0dfc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# no creduce on Windows, so exclude tests needing creduce there
run: |
echo RUSTFLAGS=$RUSTFLAGS >> $GITHUB_ENV
echo ::set-output name=exclude::${{runner.os == 'Windows' && '--exclude autocxx-reduce --exclude autocxx-gen' || ''}}
echo exclude=${{runner.os == 'Windows' && '--exclude autocxx-reduce --exclude autocxx-gen' || ''}} >> "$GITHUB_OUTPUT"
env:
# non-linux failures https://github.com/google/autocxx/issues/819
# beta failing tests https://github.com/google/autocxx/issues/818
Expand Down

0 comments on commit cb0dfc7

Please sign in to comment.