diff options
| author | Fabian Mastenbroek <fmastenbroek@meta.com> | 2023-01-06 14:28:17 +0100 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2023-01-07 21:55:56 +0000 |
| commit | be6ec3bbdff8f7c8f625506b77c7586ee2ad5eb5 (patch) | |
| tree | bd488ba6fce619846d9c398f9f64e0562d670b80 /.github/workflows | |
| parent | a0d46acf850b7b7c899f9fcd5a300b0b01db274f (diff) | |
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.
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build.yml | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
