Skip to content

Commit 7bb85fa

Browse files
committed
Download reference reports from main branch if available
1 parent 9e0ea9a commit 7bb85fa

3 files changed

Lines changed: 18 additions & 9 deletions

File tree

.github/workflows/quality-monitor-build.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,6 @@ jobs:
2525
uses: stCarolas/setup-maven@v5
2626
with:
2727
maven-version: 3.9.14
28-
- name: Download reference reports from main branch
29-
uses: dawidd6/action-download-artifact@v6
30-
with:
31-
workflow: quality-monitor-build.yml
32-
branch: main
33-
name: quality-reports
34-
path: reference-reports
35-
check_artifacts: true
36-
if_no_artifact_found: ignore
3728
- name: Check if quality monitor reports mutation coverage
3829
run: |
3930
FILE='.github/quality-monitor.json'

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ jobs:
2020
steps:
2121
- name: Checkout PR
2222
uses: actions/checkout@v6
23+
- name: Download reference reports from main branch
24+
uses: dawidd6/action-download-artifact@v6
25+
with:
26+
workflow: quality-monitor-build.yml
27+
branch: main
28+
name: quality-reports
29+
path: reference-reports
30+
check_artifacts: true
31+
if_no_artifact_found: ignore
2332
- name: Fetch reports from dependency check and quality monitor workflows
2433
env:
2534
REPO: ${{ github.repository }}

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ jobs:
3030
run: |
3131
echo "HEAD_SHA=$HEAD_SHA"
3232
echo "REPO=$REPO"
33+
- name: Download reference reports from main branch
34+
uses: dawidd6/action-download-artifact@v6
35+
with:
36+
workflow: quality-monitor-build.yml
37+
branch: main
38+
name: quality-reports
39+
path: reference-reports
40+
check_artifacts: true
41+
if_no_artifact_found: ignore
3342
- name: Fetch reports from dependency check and quality monitor workflows
3443
env:
3544
REPO: ${{ github.repository }}

0 commit comments

Comments
 (0)