Skip to content

Commit 0261471

Browse files
committed
Fix sed for macOS
1 parent 7e6a5b7 commit 0261471

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/actions/ccache/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ runs:
99
shell: bash
1010
id: cache_key
1111
run: |
12-
major=$(cat main/php_version.h | sed -n 's/^#define PHP_MAJOR_VERSION \([0-9]\+\)/\1/p')
13-
minor=$(cat main/php_version.h | sed -n 's/^#define PHP_MINOR_VERSION \([0-9]\+\)/\1/p')
12+
major=$(cat main/php_version.h | sed -En 's/^#define PHP_MAJOR_VERSION ([0-9]+)/\1/p')
13+
minor=$(cat main/php_version.h | sed -En 's/^#define PHP_MINOR_VERSION ([0-9]+)/\1/p')
1414
week=$(date +"%Y-%W")
1515
prefix="${{ inputs.name }}-$major.$minor"
1616
echo "key=$prefix-$week" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)