Skip to content

Commit b290f87

Browse files
committed
GH Actions: minor simplification
... of the bash `date` command in the earlier pulled cache busting.
1 parent 427ff57 commit b290f87

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.github/workflows/integrationtest.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -134,15 +134,15 @@ jobs:
134134
uses: "ramsey/composer-install@v2"
135135
with:
136136
composer-options: '--optimize-autoloader'
137-
# Bust the cache at least once a month - output format: YYYY-MM-DD.
138-
custom-cache-suffix: $(date -u -d "-0 month -$(($(date +%d)-1)) days" "+%F")
137+
# Bust the cache at least once a month - output format: YYYY-MM.
138+
custom-cache-suffix: $(date -u "+%Y-%m")
139139

140140
- name: Install Composer dependencies
141141
if: ${{ matrix.php == '8.3' }}
142142
uses: "ramsey/composer-install@v2"
143143
with:
144144
composer-options: '--ignore-platform-reqs --optimize-autoloader'
145-
custom-cache-suffix: $(date -u -d "-0 month -$(($(date +%d)-1)) days" "+%F")
145+
custom-cache-suffix: $(date -u "+%Y-%m")
146146

147147
- name: Run integration tests
148148
run: vendor/bin/phpunit --no-coverage

.github/workflows/phplint.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ jobs:
3939
- name: Install Composer dependencies
4040
uses: "ramsey/composer-install@v2"
4141
with:
42-
# Bust the cache at least once a month - output format: YYYY-MM-DD.
43-
custom-cache-suffix: $(date -u -d "-0 month -$(($(date +%d)-1)) days" "+%F")
42+
# Bust the cache at least once a month - output format: YYYY-MM.
43+
custom-cache-suffix: $(date -u "+%Y-%m")
4444

4545
- name: Lint against parse errors
4646
run: composer lint -- --checkstyle | cs2pr

.github/workflows/quicktest.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ jobs:
6060
uses: "ramsey/composer-install@v2"
6161
with:
6262
composer-options: '--optimize-autoloader'
63-
# Bust the cache at least once a month - output format: YYYY-MM-DD.
64-
custom-cache-suffix: $(date -u -d "-0 month -$(($(date +%d)-1)) days" "+%F")
63+
# Bust the cache at least once a month - output format: YYYY-MM.
64+
custom-cache-suffix: $(date -u "+%Y-%m")
6565

6666
- name: Run integration tests
6767
run: vendor/bin/phpunit --no-coverage

.github/workflows/securitycheck.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ jobs:
3737
- name: Install Composer dependencies
3838
uses: "ramsey/composer-install@v2"
3939
with:
40-
# Bust the cache at least once a month - output format: YYYY-MM-DD.
41-
custom-cache-suffix: $(date -u -d "-0 month -$(($(date +%d)-1)) days" "+%F")
40+
# Bust the cache at least once a month - output format: YYYY-MM.
41+
custom-cache-suffix: $(date -u "+%Y-%m")
4242

4343
- name: Download security checker
4444
# yamllint disable-line rule:line-length

0 commit comments

Comments
 (0)