From 6b80fbfa9924b15f9db2dec3bed4cc597f1026a6 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sun, 2 Mar 2025 02:01:48 -0800 Subject: [PATCH] Fix cache save condition --- .github/actions/setup/action.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 84d87da77..c49a9eb62 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -64,7 +64,7 @@ runs: - name: Cache Gradle dependencies uses: actions/cache@v4 - if: inputs.is-asset-build == 'true' && ${{ github.event_name != 'pull_request' }} + if: ${{ inputs.is-asset-build == 'true' && github.event_name != 'pull_request' }} with: path: | .gradle/caches @@ -75,7 +75,7 @@ runs: - name: Restore Gradle dependencies uses: actions/cache/restore@v4 - if: inputs.is-asset-build == 'false' || ${{ github.event_name == 'pull_request' }} + if: ${{ inputs.is-asset-build == 'false' || github.event_name == 'pull_request' }} with: path: | .gradle/caches @@ -87,7 +87,7 @@ runs: - name: Cache Gradle build cache uses: actions/cache@v4 - if: inputs.is-asset-build == 'true' && ${{ github.event_name != 'pull_request' }} + if: ${{ inputs.is-asset-build == 'true' && github.event_name != 'pull_request' }} with: path: .gradle/caches/build-cache-* key: gradle-build-cache-${{ github.sha }} @@ -95,7 +95,7 @@ runs: - name: Restore Gradle build cache uses: actions/cache/restore@v4 - if: inputs.is-asset-build == 'false' || ${{ github.event_name == 'pull_request' }} + if: ${{ inputs.is-asset-build == 'false' || github.event_name == 'pull_request' }} with: path: .gradle/caches/build-cache-* key: gradle-build-cache-${{ github.sha }}