Skip to content

Commit 114de9e

Browse files
committed
[ci] Use a unique ID instead of commit SHA
1 parent d75a62e commit 114de9e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,16 @@ jobs:
2828
- run: npm run lint
2929
if: matrix.node == 14 && matrix.os == 'ubuntu-latest'
3030
- run: npm test
31+
- run:
32+
echo ::set-output name=job_id::$(node -e
33+
"console.log(crypto.randomBytes(16).toString('hex'))")
34+
id: get_job_id
35+
shell: bash
3136
- uses: coverallsapp/github-action@v1.1.2
3237
with:
3338
flag-name:
34-
${{github.sha}} - Node.js ${{ matrix.node }} on ${{ matrix.os }}
39+
${{ steps.get_job_id.outputs.job_id }} (Node.js ${{ matrix.node }}
40+
on ${{ matrix.os }})
3541
github-token: ${{ secrets.GITHUB_TOKEN }}
3642
parallel: true
3743
coverage:

0 commit comments

Comments
 (0)