Skip to content

Commit

Permalink
[GHA] Try to use coveralls repo token although all others seem ok wit…
Browse files Browse the repository at this point in the history
…h github token
  • Loading branch information
hazendaz committed Jan 21, 2024
1 parent 3d1747e commit c1f6b72
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/coveralls.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ jobs:
distribution: zulu
- name: Report Coverage to Coveralls for Pull Requests
if: github.event_name == 'pull_request'
run: ./mvnw -B -V test jacoco:report coveralls:report -q -D"license.skip=true" -DrepoToken="$GITHUB_TOKEN" -DserviceName=github -DpullRequest=$PR_NUMBER --no-transfer-progress --file Source/JNA/pom.xml -Pcoveralls
run: ./mvnw -B -V test jacoco:report coveralls:report -q -D"license.skip=true" -DrepoToken="$COVERALLS_REPO_TOKEN" -DserviceName=github -DpullRequest=$PR_NUMBER --no-transfer-progress --file Source/JNA/pom.xml -Pcoveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
PR_NUMBER: ${{ github.event.number }}
- name: Report Coverage to Coveralls for General Push
if: github.event_name == 'push'
run: ./mvnw -B -V test jacoco:report coveralls:report -q -D"license.skip=true" -DrepoToken="$GITHUB_TOKEN" -DserviceName=github --no-transfer-progress --file Source/JNA/pom.xml -Pcoveralls
run: ./mvnw -B -V test jacoco:report coveralls:report -q -D"license.skip=true" -DrepoToken="$COVERALLS_REPO_TOKEN" -DserviceName=github --no-transfer-progress --file Source/JNA/pom.xml -Pcoveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}

0 comments on commit c1f6b72

Please sign in to comment.