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
This commit is contained in:
Arun Sathiya 2024-02-25 19:39:34 -08:00 committed by GitHub
parent 9276afd79d
commit c2bdeaf8b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@
'restore-keys': '${{ runner.os }}-go-'
- 'name': 'Get npm cache directory'
'id': 'npm-cache'
'run': 'echo "::set-output name=dir::$( npm config get cache )"'
'run': 'echo "dir=$( npm config get cache )"' >> "$GITHUB_OUTPUT"
- 'name': 'Set up npm cache'
'uses': 'actions/cache@v2'
'with':
@ -87,7 +87,7 @@
'restore-keys': '${{ runner.os }}-go-'
- 'name': 'Get npm cache directory'
'id': 'npm-cache'
'run': 'echo "::set-output name=dir::$(npm config get cache)"'
'run': 'echo "dir=$(npm config get cache)"' >> "$GITHUB_OUTPUT"
- 'name': 'Set up npm cache'
'uses': 'actions/cache@v2'
'with':