Skip to content

Commit

Permalink
[ci] Do not use the set-output command
Browse files Browse the repository at this point in the history
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/
  • Loading branch information
lpinca committed Oct 20, 2022
1 parent 966f9d4 commit c4d6eb3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Expand Up @@ -44,9 +44,10 @@ jobs:
matrix.os == 'ubuntu-latest' && matrix.node == 16 && matrix.arch ==
'x64'
- run: npm test
- run:
echo ::set-output name=job_id::$(node -e
"console.log(crypto.randomBytes(16).toString('hex'))")
- run: |
id=$(node -e "console.log(crypto.randomBytes(16).toString('hex'))")
echo "job_id=$id" >> $GITHUB_OUTPUT
id: get_job_id
shell: bash
- uses: coverallsapp/github-action@1.1.3
Expand Down

0 comments on commit c4d6eb3

Please sign in to comment.