Skip to content

Commit 620ff1c

Browse files
committed
restrict the coverage report from main branch
1 parent f1e2c01 commit 620ff1c

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ on:
1919
branches:
2020
- main
2121
paths:
22-
- '.github/**'
2322
- 'sdk/**'
2423
- 'sdk-testing/**'
2524
- 'sdk-integration-tests/**'
@@ -62,16 +61,14 @@ jobs:
6261
run: mvn -B install --file pom.xml
6362

6463
- name: Generate JaCoCo Badge
65-
if: ${{ matrix.java == 17 }}
66-
# if: ${{ github.ref == 'refs/heads/main' && matrix.java == 17 }}
64+
if: ${{ github.ref == 'refs/heads/main' && matrix.java == 17 }}
6765
uses: cicirello/jacoco-badge-generator@v2
6866
with:
6967
jacoco-csv-file: sdk/target/site/jacoco/jacoco.csv
7068
badges-directory: sdk/target/site/jacoco
7169

7270
- name: Publish coverage report to GitHub Pages
73-
if: ${{ matrix.java == 17 }}
74-
# if: ${{ github.ref == 'refs/heads/coverage' && matrix.java == 17 }}
71+
if: ${{ github.ref == 'refs/heads/main' && matrix.java == 17 }}
7572
uses: JamesIves/github-pages-deploy-action@v4
7673
with:
7774
branch: docs/coverage

0 commit comments

Comments
 (0)