From 6c3dee7d54e1af1b269e21dfd7ae928837c1f45c Mon Sep 17 00:00:00 2001 From: JuanC Galvis <8420868+juancgalvis@users.noreply.github.com> Date: Wed, 4 Dec 2024 16:46:00 -0500 Subject: [PATCH] fix(release): Setup java 17 in release action (#595) * fix(release): Setup java 17 in release action --- .github/workflows/gradle.yml | 2 +- .github/workflows/release.yml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index aba1c901..9a09c455 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -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: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8b353bb9..3324afa9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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