From db3c72f55e728849ebe1cacd8b76ef9e4c7f7ce4 Mon Sep 17 00:00:00 2001 From: Eric Haag Date: Wed, 6 Nov 2024 14:32:47 -0600 Subject: [PATCH] Update relevant workflows to create a Develocity short-lived access token --- .github/workflows/gradle-build.yml | 6 +++--- .github/workflows/gradle-release.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/gradle-build.yml b/.github/workflows/gradle-build.yml index fed10ed..5a03dba 100644 --- a/.github/workflows/gradle-build.yml +++ b/.github/workflows/gradle-build.yml @@ -13,8 +13,8 @@ jobs: java-version: '11' distribution: 'temurin' - - uses: gradle/actions/setup-gradle@v3 + - uses: gradle/actions/setup-gradle@v4 + with: + develocity-access-key: ${{ secrets.DV_SOLUTIONS_ACCESS_KEY }} - run: ./gradlew build - env: - DEVELOCITY_ACCESS_KEY: ${{ secrets.DV_SOLUTIONS_ACCESS_KEY }} diff --git a/.github/workflows/gradle-release.yml b/.github/workflows/gradle-release.yml index 2d1908f..36eaa86 100644 --- a/.github/workflows/gradle-release.yml +++ b/.github/workflows/gradle-release.yml @@ -31,12 +31,12 @@ jobs: distribution: 'temurin' - name: Setup Gradle - uses: gradle/actions/setup-gradle@v3 + uses: gradle/actions/setup-gradle@v4 + with: + develocity-access-key: ${{ secrets.DV_SOLUTIONS_ACCESS_KEY }} - name: Generate reference script with version run: ./gradlew promote -Pversion=${{ inputs.version }} - env: - DEVELOCITY_ACCESS_KEY: ${{ secrets.DV_SOLUTIONS_ACCESS_KEY }} - name: Commit & push changes uses: stefanzweifel/git-auto-commit-action@v5