Skip to content

Commit cb0dfc7

Browse files
committed
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 <[email protected]>
1 parent 69eb3d8 commit cb0dfc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
# no creduce on Windows, so exclude tests needing creduce there
7272
run: |
7373
echo RUSTFLAGS=$RUSTFLAGS >> $GITHUB_ENV
74-
echo ::set-output name=exclude::${{runner.os == 'Windows' && '--exclude autocxx-reduce --exclude autocxx-gen' || ''}}
74+
echo exclude=${{runner.os == 'Windows' && '--exclude autocxx-reduce --exclude autocxx-gen' || ''}} >> "$GITHUB_OUTPUT"
7575
env:
7676
# non-linux failures https://github.com/google/autocxx/issues/819
7777
# beta failing tests https://github.com/google/autocxx/issues/818

0 commit comments

Comments
 (0)