More fixes for custom CI action.

This commit is contained in:
Refringe 2025-01-29 17:57:11 -05:00
parent 4b7a01ee7a
commit f9c17b2a6c
Signed by: Refringe
SSH Key Fingerprint: SHA256:t865XsQpfTeqPRBMN2G6+N8wlDjkgUCZF3WGW6O9N/k

View File

@ -23,19 +23,19 @@ runs:
steps: steps:
- name: Get PHP Extension Cache Hash - name: Get PHP Extension Cache Hash
id: php-ext-cache-hash id: php-ext-cache-hash
with: env:
PHP_EXTENSIONS: ${{ inputs.php-extensions }} PHP_EXTENSIONS: ${{ inputs.php-extensions }}
REDIS_OPTIONS: ${{ inputs.redis-options }} REDIS_OPTIONS: ${{ inputs.redis-options }}
REDIS_LIBS: ${{ inputs.redis-libs }} REDIS_LIBS: ${{ inputs.redis-libs }}
run: | run: |
concat_values="${PHP_EXTENSIONS}${REDIS_OPTIONS}${REDIS_LIBS}" concat_values="${PHP_EXTENSIONS}${REDIS_OPTIONS}${REDIS_LIBS}"
echo hash=$(echo $concat_values | md5sum | awk '{print $1}') >> $GITHUB_OUTPUT echo "hash=$(echo $concat_values | md5sum | awk '{print $1}')" >> $GITHUB_OUTPUT
shell: bash shell: bash
- name: Setup Cache Environment - name: Setup Cache Environment
id: php-ext-cache id: php-ext-cache
uses: shivammathur/cache-extensions@v1 uses: shivammathur/cache-extensions@v1
if: inputs.php-extensions == true && inputs.redis-options == true && inputs.redis-libs == true if: inputs.php-extensions != '' && inputs.redis-options != '' && inputs.redis-libs != ''
with: with:
php-version: ${{ inputs.php-version }} php-version: ${{ inputs.php-version }}
extensions: ${{ inputs.php-extensions }} extensions: ${{ inputs.php-extensions }}
@ -43,7 +43,7 @@ runs:
- name: Cache PHP Extensions - name: Cache PHP Extensions
uses: actions/cache@v4 uses: actions/cache@v4
if: inputs.php-extensions == true && inputs.redis-options == true && inputs.redis-libs == true if: inputs.php-extensions != '' && inputs.redis-options != '' && inputs.redis-libs != ''
with: with:
path: ${{ steps.php-ext-cache.outputs.dir }} path: ${{ steps.php-ext-cache.outputs.dir }}
key: ${{ steps.php-ext-cache.outputs.key }} key: ${{ steps.php-ext-cache.outputs.key }}
@ -63,7 +63,7 @@ runs:
- name: Get Composer Cache Directory - name: Get Composer Cache Directory
id: composer-cache id: composer-cache
run: echo dir=$(composer config cache-files-dir) >> $GITHUB_OUTPUT run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
shell: bash shell: bash
- name: Cache Composer Dependencies - name: Cache Composer Dependencies
@ -75,7 +75,7 @@ runs:
- name: Get NPM Cache Directory - name: Get NPM Cache Directory
id: npm-cache id: npm-cache
run: echo dir=$(npm config get cache) >> $GITHUB_OUTPUT run: echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT
shell: bash shell: bash
- name: Cache NPM Dependencies - name: Cache NPM Dependencies