GH Actions: minor simplification
... of the bash `date` command in the earlier pulled cache busting.
This commit is contained in:
parent
df16b615e3
commit
e64259b34c
|
|
@ -31,8 +31,8 @@ jobs:
|
|||
- name: Install Composer dependencies
|
||||
uses: "ramsey/composer-install@v2"
|
||||
with:
|
||||
# Bust the cache at least once a month - output format: YYYY-MM-DD.
|
||||
custom-cache-suffix: $(date -u -d "-0 month -$(($(date +%d)-1)) days" "+%F")
|
||||
# Bust the cache at least once a month - output format: YYYY-MM.
|
||||
custom-cache-suffix: $(date -u "+%Y-%m")
|
||||
|
||||
- name: Check coding standards
|
||||
id: phpcs
|
||||
|
|
@ -71,8 +71,8 @@ jobs:
|
|||
- name: Install Composer dependencies
|
||||
uses: "ramsey/composer-install@v2"
|
||||
with:
|
||||
# Bust the cache at least once a month - output format: YYYY-MM-DD.
|
||||
custom-cache-suffix: $(date -u -d "-0 month -$(($(date +%d)-1)) days" "+%F")
|
||||
# Bust the cache at least once a month - output format: YYYY-MM.
|
||||
custom-cache-suffix: $(date -u "+%Y-%m")
|
||||
|
||||
- name: Lint against parse errors
|
||||
if: ${{ matrix.php != '8.3' }}
|
||||
|
|
@ -126,16 +126,16 @@ jobs:
|
|||
if: ${{ matrix.php != '8.3' }}
|
||||
uses: "ramsey/composer-install@v2"
|
||||
with:
|
||||
# Bust the cache at least once a month - output format: YYYY-MM-DD.
|
||||
custom-cache-suffix: $(date -u -d "-0 month -$(($(date +%d)-1)) days" "+%F")
|
||||
# Bust the cache at least once a month - output format: YYYY-MM.
|
||||
custom-cache-suffix: $(date -u "+%Y-%m")
|
||||
|
||||
- name: Install PHP packages - ignore-platform-reqs
|
||||
if: ${{ matrix.php == '8.3' }}
|
||||
uses: "ramsey/composer-install@v2"
|
||||
with:
|
||||
composer-options: --ignore-platform-reqs
|
||||
# Bust the cache at least once a month - output format: YYYY-MM-DD.
|
||||
custom-cache-suffix: $(date -u -d "-0 month -$(($(date +%d)-1)) days" "+%F")
|
||||
# Bust the cache at least once a month - output format: YYYY-MM.
|
||||
custom-cache-suffix: $(date -u "+%Y-%m")
|
||||
|
||||
# Install postfix and automatically retry if the install failed, which happens reguarly.
|
||||
# @link https://github.com/marketplace/actions/retry-step
|
||||
|
|
|
|||
Loading…
Reference in New Issue