From be6ec3bbdff8f7c8f625506b77c7586ee2ad5eb5 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Fri, 6 Jan 2023 14:28:17 +0100 Subject: ci: Enable Gradle caching on master branch This change updates the build workflow in GitHub Actions to enable caching of the Gradle build when it happens on the master branch. Due to a mistake, this would only happen on a non-existent 'main' branch. --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 96b86233..78c59a63 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,9 +31,9 @@ jobs: uses: gradle/gradle-build-action@v2 with: arguments: build codeCoverageReport - # Only write to the cache for builds on the 'main' branch. + # Only write to the cache for builds on the 'master' branch. # Builds on other branches will only read existing entries from the cache. - cache-read-only: ${{ github.ref != 'refs/heads/main' }} + cache-read-only: ${{ github.ref != 'refs/heads/master' }} - name: Publish report if: always() uses: mikepenz/action-junit-report@v3 -- cgit v1.2.3