From a577cfab374284696b950f708b9f31d88c0f36aa Mon Sep 17 00:00:00 2001 From: Guillermo Mazzola Date: Mon, 12 Feb 2024 14:07:13 +0100 Subject: [PATCH] Added `GRADLE_ENCRYPTION_KEY` to the build --- .github/actions/setup-host/action.yml | 7 +++++++ .github/workflows/build.yaml | 2 ++ .../{dependabot_automerge.yml => dependabot-automerge.yml} | 0 .github/workflows/release.yaml | 2 ++ .github/workflows/update-gradle-wrapper.yml | 2 ++ 5 files changed, 13 insertions(+) rename .github/workflows/{dependabot_automerge.yml => dependabot-automerge.yml} (100%) diff --git a/.github/actions/setup-host/action.yml b/.github/actions/setup-host/action.yml index 01b4d3d..68c7a4e 100644 --- a/.github/actions/setup-host/action.yml +++ b/.github/actions/setup-host/action.yml @@ -1,6 +1,11 @@ name: 'Setup Host' description: 'Configures the host runner to run the build' +inputs: + gradle-encryption-key: + description: 'The encryption key to use for the Gradle Configuration cache' + required: true + runs: using: "composite" steps: @@ -11,3 +16,5 @@ runs: java-version: '11' - name: Setup Gradle uses: gradle/actions/setup-gradle@v3 + with: + cache-encryption-key: ${{ inputs.gradle-encryption-key }} diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 7bede8c..07c4708 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -24,6 +24,8 @@ jobs: fetch-depth: 0 - name: Setup host uses: ./.github/actions/setup-host + with: + gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} - name: Test & Build run: ./gradlew -s build - name: Publish Test Report diff --git a/.github/workflows/dependabot_automerge.yml b/.github/workflows/dependabot-automerge.yml similarity index 100% rename from .github/workflows/dependabot_automerge.yml rename to .github/workflows/dependabot-automerge.yml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a3c430a..c129239 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -19,6 +19,8 @@ jobs: fetch-depth: 0 - name: Setup host uses: ./.github/actions/setup-host + with: + gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} - name: Publish env: ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }} diff --git a/.github/workflows/update-gradle-wrapper.yml b/.github/workflows/update-gradle-wrapper.yml index 7aa18dc..787d1ec 100644 --- a/.github/workflows/update-gradle-wrapper.yml +++ b/.github/workflows/update-gradle-wrapper.yml @@ -14,6 +14,8 @@ jobs: uses: actions/checkout@v4 - name: Setup host uses: ./.github/actions/setup-host + with: + gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} - name: Update Gradle Wrapper uses: gradle-update/update-gradle-wrapper-action@v1 with: