Skip to content

Commit 429cfd4

Browse files
authored
ci: Use GITHUB_OUTPUT envvar instead of set-output command (#100)
PR-URL: #100 `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
1 parent ca4c97e commit 429cfd4

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
@@ -180,7 +180,7 @@ jobs:
180180
echo "node@$(node -v)"
181181
echo "npm@$(npm -v)"
182182
npm -s ls ||:
183-
(npm -s ls --depth=0 ||:) | awk -F'[ @]' 'NR>1 && $2 { print "::set-output name=" $2 "::" $3 }'
183+
(npm -s ls --depth=0 ||:) | awk -F'[ @]' 'NR>1 && $2 { print "" $2 "=" $3 }' >> "$GITHUB_OUTPUT"
184184
185185
- name: Run tests
186186
shell: bash

0 commit comments

Comments
 (0)