Skip to content

Commit

Permalink
fix(release): Setup java 17 in release action (#595)
Browse files Browse the repository at this point in the history
* fix(release): Setup java 17 in release action
  • Loading branch information
juancgalvis authored Dec 4, 2024
1 parent 7b41fc6 commit 6c3dee7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
- name: Push codeCoverage to Codecov
run: bash <(curl -s https://codecov.io/bash)
- name: Run sonar
if: github.event.pull_request.head.repo.fork == false
if: github.event.pull_request.head.repo.fork == false && github.event.pull_request.head.ref != 'dependabot/**'
run: ./gradlew sonar --stacktrace
-Dsonar.token=${{ secrets.SONAR_TOKEN }}
env:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
token: ${{ steps.generate_token.outputs.token }}
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
with:
distribution: 'temurin'
java-version: 11
java-version: 17
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
- name: Upgrade Gradle.properties
Expand Down Expand Up @@ -76,11 +76,11 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
ref: 'master'
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
with:
distribution: 'temurin'
java-version: 11
java-version: 17
# publish as library in maven
- name: Confirm gradle.properties
run: cat gradle.properties
Expand Down

0 comments on commit 6c3dee7

Please sign in to comment.