Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
Makes env variables accessible as properties in gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco Pezzato committed Nov 24, 2021
1 parent 4136dee commit 555105f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
run: ./build-scripts/deploy_snapshot.sh
env:
GITHUB_IS_PULL_REQUEST: ${{ github.event_name == 'pull_request' }}
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}

- name: Run coverage
env:
CODACITY_PROJECT_TOKEN: ${{ secrets.CODACITY_PROJECT_TOKEN }}
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
run: ./build-scripts/coverage.sh
2 changes: 1 addition & 1 deletion build-scripts/coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ set -e

./gradlew -q clean jacocoMergedReport
cd build-scripts
java -cp codacy-coverage-reporter-assembly-1.0.5.jar com.codacy.CodacyCoverageReporter -l Java -t $CODACITY_PROJECT_TOKEN -r ../build/reports/jacoco/jacocoMergedReport/jacocoMergedReport.xml
java -cp codacy-coverage-reporter-assembly-1.0.5.jar com.codacy.CodacyCoverageReporter -l Java -t $CODACY_PROJECT_TOKEN -r ../build/reports/jacoco/jacocoMergedReport/jacocoMergedReport.xml

0 comments on commit 555105f

Please sign in to comment.