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
  • Loading branch information
arunsathiya authored Jan 20, 2024
1 parent f8aa9d6 commit a574966
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci-done.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
run: |
mkdir -p test-results
unzip -d test-results test-results.zip
echo "::set-output name=sha::$(cat test-results/sha-number)"
echo "sha=$(cat test-results/sha-number)" >> "$GITHUB_OUTPUT"
- uses: docker://ghcr.io/enricomi/publish-unit-test-result-action:v1.6
with:
commit: ${{ steps.unpack.outputs.sha }}
Expand Down

0 comments on commit a574966

Please sign in to comment.