From e6099422f0bfabcf633dbfb27b914dc23e1903c6 Mon Sep 17 00:00:00 2001 From: Mattias Reichel Date: Sun, 22 Dec 2024 08:26:14 +0100 Subject: [PATCH] ci: add develocity key explicitly The `DEVELOCITY_ACCESS_KEY` environment variable should be set by the `setup-gradle` action. However, it does not seem to work in this repo. Trying to set it explicitly on each step. --- .github/workflows/gradle.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 8ccb6232..273d5f82 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -36,10 +36,14 @@ jobs: - name: "🏃 Run Tests" if: github.event_name == 'pull_request' id: tests + env: + DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} run: ./gradlew check - name: "🔨 Build project" if: github.event_name == 'push' id: build + env: + DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} run: ./gradlew build - name: "📄 Publish Test Report" if: steps.build.outcome == 'failure' || steps.tests.outcome == 'failure' @@ -56,6 +60,8 @@ jobs: - name: "✍️ Generate Documentation" id: docs if: success() && github.event_name == 'push' && matrix.java == '17' + env: + DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} run: ./gradlew docs - name: "📤 Publish to Github Pages" if: steps.publish.outcome == 'success' && github.event_name == 'push' && matrix.java == '17'