Skip to content

Commit d2f6ad5

Browse files
committed
Enable delta metrics in PR pipelines
1 parent 8cf6e03 commit d2f6ad5

1 file changed

Lines changed: 4 additions & 11 deletions

File tree

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

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ jobs:
2020
steps:
2121
- name: Checkout PR
2222
uses: actions/checkout@v6
23-
- name: Fetch reports from dependency check and quality monitor workflows
23+
- name: Install jq and unzip
24+
run: sudo apt-get update && sudo apt-get install -y jq unzip
25+
- name: Download PR reports from dependency check and quality monitor workflows
2426
env:
2527
REPO: ${{ github.repository }}
2628
HEAD_SHA: ${{ github.event.workflow_run.head_sha }}
@@ -46,16 +48,6 @@ jobs:
4648
fi
4749
echo "PR number from reports/pr-number.txt: $pr_number"
4850
echo "number=$pr_number" >> "$GITHUB_OUTPUT"
49-
- name: Install jq and unzip
50-
run: sudo apt-get update && sudo apt-get install -y jq unzip
51-
- name: Prepare environment
52-
env:
53-
HEAD_SHA: ${{ github.event.workflow_run.head_sha }}
54-
REPO: ${{ github.repository }}
55-
TOKEN: ${{ secrets.GITHUB_TOKEN }}
56-
run: |
57-
echo "HEAD_SHA=$HEAD_SHA"
58-
echo "REPO=$REPO"
5951
- name: Read Quality Monitor Configuration
6052
id: quality-monitor
6153
run: echo "json=$(jq -c . .github/quality-monitor-pr.json)" >> "$GITHUB_OUTPUT"
@@ -69,6 +61,7 @@ jobs:
6961
config: ${{ steps.quality-monitor.outputs.json }}
7062
quality-gates: ${{ steps.quality-gates.outputs.json }}
7163
pr-number: ${{ steps.pr.outputs.number }}
64+
enable-delta: true
7265
comments-strategy: REMOVE
7366
show-headers: true
7467
title-metric: none

0 commit comments

Comments
 (0)