Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit cbc549c8 authored by Wolf-Martell Montwé's avatar Wolf-Martell Montwé
Browse files

chore(ci): only allow one workflow to write the cache

parent dcd75084
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -9,6 +9,10 @@ inputs:
    description: 'Whether to add a job summary (always, never, on-failure).'
    required: false
    default: 'always'
  write-cache:
    description: 'Whether to write to the cache (true/false).'
    required: false
    default: 'false'
runs:
  using: 'composite'
  steps:
@@ -27,3 +31,4 @@ runs:
      with:
        cache-disabled: ${{ inputs.run-release }}
        add-job-summary: ${{ inputs.add-job-summary }}
        cache-read-only: ${{ inputs.write-cache == 'false' || inputs.run-release == 'true' }}
+2 −0
Original line number Diff line number Diff line
@@ -42,6 +42,8 @@ jobs:

      - name: Setup Gradle environment
        uses: ./.github/actions/setup-gradle
        with:
          write-cache: ${{ github.ref == 'refs/heads/main' }}

      - name: Show disk usage
        uses: ./.github/actions/disk-usage