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 9, 2024
1 parent eb73067 commit fa17a24
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion 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
- 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 }}-${{ 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 fa17a24

Please sign in to comment.