mirror of
https://github.com/sp-tarkov/forge.git
synced 2025-02-13 04:30:41 -05:00
More fixes for custom CI action.
This commit is contained in:
parent
4b7a01ee7a
commit
f9c17b2a6c
12
.github/action/setup/action.yml
vendored
12
.github/action/setup/action.yml
vendored
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user