Skip to content

Commit c4d6eb3

Browse files
committed
[ci] Do not use the set-output command
The `set-output` command is deprecated. Use the `GITHUB_OUTPUT` environment file. Refs: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
1 parent 966f9d4 commit c4d6eb3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ jobs:
4444
matrix.os == 'ubuntu-latest' && matrix.node == 16 && matrix.arch ==
4545
'x64'
4646
- run: npm test
47-
- run:
48-
echo ::set-output name=job_id::$(node -e
49-
"console.log(crypto.randomBytes(16).toString('hex'))")
47+
- run: |
48+
id=$(node -e "console.log(crypto.randomBytes(16).toString('hex'))")
49+
50+
echo "job_id=$id" >> $GITHUB_OUTPUT
5051
id: get_job_id
5152
shell: bash
5253
- uses: coverallsapp/[email protected]

0 commit comments

Comments
 (0)