-
-
Notifications
You must be signed in to change notification settings - Fork 28
31 lines (29 loc) · 897 Bytes
/
pit-update-pr.yml
File metadata and controls
31 lines (29 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: PIT PR Updater
# read-write repo token
# access to secrets
on:
workflow_run:
workflows: ["PIT"]
types:
- completed
jobs:
pitest-update-pr:
name: Write PIT results as pull request comment
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
check-latest: true
- name: Download artifact
uses: dawidd6/action-download-artifact@v7
with:
workflow: ${{ github.event.workflow_run.workflow_id }}
name: pitest
path: target/pit-reports-ci
workflow_conclusion: success
- name: Update pull request
run: mvn -DrepoToken=${{ secrets.GITHUB_TOKEN }} com.groupcdg:pitest-github-maven-plugin:1.1.4:updatePR