ci: use GITHUB_OUTPUT envvar instead of set-output command (#271)

`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-01-20 00:55:49 -08:00 committed by GitHub
parent 6f572ba5f3
commit 72cb6da810
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,7 +19,7 @@ jobs:
- name: Save PR id
id: pr
run: echo "::set-output name=id::$(<pr-id.txt)"
run: echo "id=$(<pr-id.txt)" >> "$GITHUB_OUTPUT"
- name: Download dist artifact
uses: dawidd6/action-download-artifact@v2
@ -73,7 +73,7 @@ jobs:
- name: Save PR id
id: pr
run: echo "::set-output name=id::$(<pr-id.txt)"
run: echo "id=$(<pr-id.txt)" >> "$GITHUB_OUTPUT"
- name: The job failed
uses: actions-cool/maintain-one-comment@v2