We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9bad8c commit 7c273baCopy full SHA for 7c273ba
.github/actions/ccache/action.yml
@@ -5,15 +5,9 @@ inputs:
5
runs:
6
using: composite
7
steps:
8
- - name: Get PHP version
9
- shell: bash
10
- id: php_version
11
- run: |
12
- echo "major=$(cat main/php_version.h | sed -n 's/^#define PHP_MAJOR_VERSION \([0-9]\+\)/\1/p')" >> $GITHUB_OUTPUT
13
- echo "minor=$(cat main/php_version.h | sed -n 's/^#define PHP_MINOR_VERSION \([0-9]\+\)/\1/p')" >> $GITHUB_OUTPUT
14
- name: ccache
15
uses: hendrikmuhs/ccache-action@v1.2
16
with:
17
- key: "${{ inputs.name }}-${{ steps.php_version.outputs.major }}.${{ steps.php_version.outputs.minor }}"
+ key: "${{ inputs.name }}-${{ hashFiles('main/php_version.h') }}"
18
append-timestamp: false
19
save: ${{ github.event_name != 'pull_request' }}
0 commit comments