Skip to content

Commit

Permalink
[ci] Use a unique ID instead of commit SHA
Browse files Browse the repository at this point in the history
  • Loading branch information
lpinca committed Mar 7, 2021
1 parent d75a62e commit 114de9e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,16 @@ jobs:
- run: npm run lint
if: matrix.node == 14 && matrix.os == 'ubuntu-latest'
- run: npm test
- run:
echo ::set-output name=job_id::$(node -e
"console.log(crypto.randomBytes(16).toString('hex'))")
id: get_job_id
shell: bash
- uses: coverallsapp/github-action@v1.1.2
with:
flag-name:
${{github.sha}} - Node.js ${{ matrix.node }} on ${{ matrix.os }}
${{ steps.get_job_id.outputs.job_id }} (Node.js ${{ matrix.node }}
on ${{ matrix.os }})
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel: true
coverage:
Expand Down

0 comments on commit 114de9e

Please sign in to comment.