Skip to content

Commit f7294ef

Browse files
committed
Output some details about the downloaded reference reports
1 parent 3d7fa3a commit f7294ef

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/quality-monitor-comment-pr.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
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
@@ -29,6 +30,15 @@ jobs:
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 }}

0 commit comments

Comments
 (0)