diff --git a/.github/workflows/dependency-submission.yml b/.github/workflows/dependency-submission.yml index 5b169c3..dde6a99 100644 --- a/.github/workflows/dependency-submission.yml +++ b/.github/workflows/dependency-submission.yml @@ -18,6 +18,9 @@ on: - '.github/workflows/dependency-submission.yml' workflow_dispatch: +env: + JAVA_VERSION: 25 + concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -36,5 +39,5 @@ jobs: persist-credentials: false - uses: aboutbits/github-actions-java/dependency-submission-with-gradle@v4 with: - java-version: 25 + java-version: ${{ env.JAVA_VERSION }} project-type: quarkus diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0740355..9dc53f9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,6 +17,7 @@ on: permissions: {} env: + JAVA_VERSION: 25 OCI_IMAGE: ghcr.io/${{ github.repository }} HELM_CHART_NAME: postgresql-operator HELM_CHART_REPOSITORY: ghcr.io/${{ github.repository_owner }}/helm-charts @@ -46,7 +47,7 @@ jobs: - uses: aboutbits/github-actions-base/git-setup@v2 - uses: aboutbits/github-actions-java/setup-with-gradle@v4 with: - java-version: 25 + java-version: ${{ env.JAVA_VERSION }} cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} - name: Increment version env: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7eadccb..e4f01f6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,6 +6,10 @@ on: GRADLE_ENCRYPTION_KEY: required: false +env: + # The workflows that call this one do not pass their env to it and set their own JAVA_VERSION: keep all equal. + JAVA_VERSION: 25 + permissions: contents: read @@ -24,7 +28,7 @@ jobs: persist-credentials: false - uses: aboutbits/github-actions-java/setup-with-gradle@v4 with: - java-version: 25 + java-version: ${{ env.JAVA_VERSION }} cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} - name: Build & Test run: >-