diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index eb4582abebb..7d32d067261 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -824,6 +824,7 @@ jobs: with: key: "${{github.job}}-${{hashFiles('php/main/php_version.h')}}" append-timestamp: false + save: ${{ github.event_name != 'pull_request' }} - name: build PHP run: | cd php diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 4b645cdce27..d96748acecc 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -116,6 +116,7 @@ jobs: # job id, not the job name) key: "LINUX_X64_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}${{ matrix.asan && '_ASAN' || '' }}-${{hashFiles('main/php_version.h')}}" append-timestamp: false + save: ${{ github.event_name != 'pull_request' }} - name: ./configure uses: ./.github/actions/configure-x64 with: @@ -170,6 +171,7 @@ jobs: with: key: "${{github.job}}-${{matrix.os}}-${{hashFiles('main/php_version.h')}}" append-timestamp: false + save: ${{ github.event_name != 'pull_request' }} - name: ./configure uses: ./.github/actions/configure-macos with: @@ -246,6 +248,7 @@ jobs: with: key: "${{github.job}}-${{hashFiles('main/php_version.h')}}" append-timestamp: false + save: ${{ github.event_name != 'pull_request' }} - name: ./configure run: | set -x