Skip to content

Commit f77215b

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

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,15 @@ 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('base64'))")
34+
id: get_job_id
3135
- uses: coverallsapp/github-action@v1.1.2
3236
with:
3337
flag-name:
34-
${{github.sha}} - Node.js ${{ matrix.node }} on ${{ matrix.os }}
38+
${{ steps.get_job_id.outputs.job_id }} (Node.js ${{ matrix.node }}
39+
on ${{ matrix.os }})
3540
github-token: ${{ secrets.GITHUB_TOKEN }}
3641
parallel: true
3742
coverage:

0 commit comments

Comments
 (0)