Skip to content

Commit 4c975ba

Browse files
committed
Try to Get Coveralls Working with Pull Requests
1 parent 2757c07 commit 4c975ba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/coveralls.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
name: Coveralls
1818

19-
on: [push, pull_request]
19+
on: [pull_request]
2020

2121
jobs:
2222
build:
@@ -32,6 +32,7 @@ jobs:
3232
with:
3333
java-version: 8
3434
- name: Report Coverage to Coveralls
35-
run: ./mvnw test jacoco:report coveralls:report -q -Dlicense.skip=true -DrepoToken=$GITHUB_TOKEN -DserviceName=github
35+
run: ./mvnw test jacoco:report coveralls:report -q -Dlicense.skip=true -DrepoToken=$GITHUB_TOKEN -DserviceName=github -DpullRequest=$PR_NUMBER
3636
env:
3737
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
PR_NUMBER: ${{ github.event.number }}

0 commit comments

Comments
 (0)