diff --git a/.github/workflows/pull-request-kotlin.yml b/.github/workflows/pull-request-kotlin.yml index 7927487..c98b512 100644 --- a/.github/workflows/pull-request-kotlin.yml +++ b/.github/workflows/pull-request-kotlin.yml @@ -112,10 +112,8 @@ jobs: uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 with: path: ~/.sonar/cache - key: ${{ runner.os }}-sonar-${{ github.head_ref }}-${{ github.sha }} - restore-keys: | - ${{ runner.os }}-sonar-${{ github.head_ref }}- - ${{ runner.os }}-sonar- + key: ${{ runner.os }}-sonar + restore-keys: ${{ runner.os }}-sonar - name: Run linter env: GHL_USERNAME: ${{ secrets.GHL_USERNAME }} @@ -194,9 +192,9 @@ jobs: ~/.gradle/caches ~/.gradle/wrapper key: ${{ runner.os }}-gradle-${{ github.head_ref }}-${{ github.sha }} - - name: Save SonarCloud cache + - name: Save SonarQube cache if: ${{ always() && !inputs.skip-sonar && steps.sonar-cache.outputs.cache-hit != 'true' }} uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 with: path: ~/.sonar/cache - key: ${{ runner.os }}-sonar-${{ github.head_ref }}-${{ github.sha }} + key: ${{ runner.os }}-sonar