File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 - name : Checkout PR
2222 uses : actions/checkout@v6
2323 - name : Download reference reports from main branch
24+ id : download-reference
2425 uses : dawidd6/action-download-artifact@v21
2526 with :
2627 workflow : quality-monitor-build.yml
2930 path : reference-reports
3031 check_artifacts : true
3132 if_no_artifact_found : ignore
33+ - name : Display reference artifact info
34+ run : |
35+ echo "Artifact details: ${{ steps.download-reference.outputs.artifacts }}"
36+ run_id=$(echo '${{ steps.download-reference.outputs.artifacts }}' | jq -r '.[0].workflow_run.id // "unknown"')
37+ run_number=$(echo '${{ steps.download-reference.outputs.artifacts }}' | jq -r '.[0].workflow_run.run_number // "unknown"')
38+ echo "Downloaded artifact from Run ID: $run_id"
39+ echo "Downloaded artifact from Run Number: $run_number"
40+ echo "run_id=$run_id" >> "$GITHUB_ENV"
41+ echo "run_number=$run_number" >> "$GITHUB_ENV"
3242 - name : Fetch reports from dependency check and quality monitor workflows
3343 env :
3444 REPO : ${{ github.repository }}
You can’t perform that action at this time.
0 commit comments