Skip to content

Commit

Permalink
self-test-suite-verify: use random ID to distinguish artifacts to upload
Browse files Browse the repository at this point in the history
  • Loading branch information
shore committed May 7, 2024
1 parent 1630d1f commit 9086f12
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/self-test-suite-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,12 @@ jobs:
- { assert: failure, file: corrupt, when: result file is corrupt }
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
# generate a random ID; GH doesn't provide a proper job ID (especially for matrix jobs)
- name: Generate random ID to distinguish build artifacts
run: echo "ARTIFACT_ID=$RANDOM" >> "$GITHUB_ENV"
- uses: ./verify/self-test
with:
assert: ${{ matrix.assert }}
when: ${{ matrix.when }}
result_file: verify/testdata/${{ matrix.file }}.buildresult.json
output_file: verification-result-${{ inputs.runner }}.json
output_file: verification-result-${{ inputs.runner }}-${{ env.ARTIFACT_ID }}.json

0 comments on commit 9086f12

Please sign in to comment.