Skip to content

Commit

Permalink
add secureboot identifier into report name
Browse files Browse the repository at this point in the history
This is to avoid calshes of artifact names when running a test matrix with the secureboot option enabled

Change-type: patch
Signed-off-by: Ryan Cooke <[email protected]>
  • Loading branch information
rcooke-warwick committed Oct 10, 2024
1 parent 438b232 commit 7ca3cb2
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,22 @@ runs:
echo "#### Skipped Tests" >> $GITHUB_STEP_SUMMARY
jq -r '.[0].tests | to_entries[] | select(.value == "skipped") | .key' ${REPORTS}/final-result.json >> $GITHUB_STEP_SUMMARY
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
- name: Generate artifact name
shell: bash
id: report-name
run: |
if [ "$QEMU_SECUREBOOT" -eq 1 ]; then
SB="-sb"
else
SB=""
fi
echo "reportName=reports-${{ env.WORKER_TYPE }}-${{ env.DEVICE_TYPE }}-${{ env.TEST_SUITE }}${SB}" >>"${GITHUB_OUTPUT}"
- uses: actions/upload-artifact@84480863f228bb9747b473957fcc9e309aa96097 # v4
if: always()
with:
name: reports-${{ env.WORKER_TYPE }}-${{ env.DEVICE_TYPE }}-${{ env.TEST_SUITE }}
name: ${{ steps.report-name.outputs.reportName }}
path: ${{ env.REPORTS }}

- name: Teardown
Expand Down

0 comments on commit 7ca3cb2

Please sign in to comment.