Skip to content

Commit bad1f57

Browse files
committed
Cleanup
1 parent a82bb2c commit bad1f57

File tree

5 files changed

+8
-32
lines changed

5 files changed

+8
-32
lines changed

.github/workflows/copilot-setup-steps.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,3 @@ jobs:
3939
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # v4
4040
env:
4141
COMPOSER_ROOT_VERSION: dev-${{ github.event.repository.default_branch }}
42-
with:
43-
# Bust the cache at least once a month - output format: YYYY-MM.
44-
custom-cache-suffix: $(date -u "+%Y-%m")

.github/workflows/reusable-code-quality.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@ jobs:
6363
uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # v3
6464
env:
6565
COMPOSER_ROOT_VERSION: dev-${{ github.event.repository.default_branch }}
66-
with:
67-
# Bust the cache at least once a month - output format: YYYY-MM.
68-
custom-cache-suffix: $(date -u "+%Y-%m")
6966

7067
- name: Check existence of vendor/bin/parallel-lint file
7168
id: check_linter_file
@@ -151,9 +148,6 @@ jobs:
151148
uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # v3
152149
env:
153150
COMPOSER_ROOT_VERSION: dev-${{ github.event.repository.default_branch }}
154-
with:
155-
# Bust the cache at least once a month - output format: YYYY-MM.
156-
custom-cache-suffix: $(date -u "+%Y-%m")
157151

158152
- name: Check existence of vendor/bin/phpcs file
159153
id: check_phpcs_binary_file
@@ -196,9 +190,7 @@ jobs:
196190
uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # v3
197191
env:
198192
COMPOSER_ROOT_VERSION: dev-${{ github.event.repository.default_branch }}
199-
with:
200-
# Bust the cache at least once a month - output format: YYYY-MM.
201-
custom-cache-suffix: $(date -u "+%Y-%m")
193+
202194

203195
- name: Check existence of vendor/bin/phpstan file
204196
id: check_phpstan_binary_file

.github/workflows/reusable-functional.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,10 @@ jobs:
7676
run: |
7777
sudo sed -i 's/^.*policy.*coder.*none.*PDF.*//' /etc/ImageMagick-6/policy.xml
7878
79-
# This date is used to ensure that the PHP compatibility cache is cleared at least once every week.
80-
# http://man7.org/linux/man-pages/man1/date.1.html
81-
- name: "Get last Monday's date"
82-
id: get-date
83-
run: echo "date=$(/bin/date -u --date='last Mon' "+%F")" >> "$GITHUB_OUTPUT"
84-
8579
- name: Install Composer dependencies & cache dependencies
8680
uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # v3
8781
env:
8882
COMPOSER_ROOT_VERSION: dev-${{ github.event.repository.default_branch }}
89-
with:
90-
custom-cache-suffix: ${{ steps.get-date.outputs.date }}
9183

9284
# MySQL 8.4 requires explicit loading of mysql_native_password plugin
9385
- name: Determine MySQL authentication configuration

.github/workflows/reusable-regenerate-readme.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,20 @@ jobs:
4040
uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # v3
4141
env:
4242
COMPOSER_ROOT_VERSION: dev-${{ github.event.repository.default_branch }}
43-
with:
44-
# Bust the cache at least once a month - output format: YYYY-MM.
45-
custom-cache-suffix: $(date -u "+%Y-%m")
43+
44+
- name: Install WP-CLI
45+
run: |
46+
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli-nightly.phar
47+
sudo mv wp-cli-nightly.phar /usr/local/bin/wp
48+
sudo chmod +x /usr/local/bin/wp
4649
4750
- name: Regenerate README.md file
4851
run: |
4952
wp package install "wp-cli/scaffold-package-command:^2"
5053
wp scaffold package-readme --branch=${{ github.event.repository.default_branch }} --force .
5154
5255
- name: Create pull request
53-
uses: peter-evans/create-pull-request@v7
56+
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8
5457
with:
5558
branch: regenerate-readme
5659
base: ${{ github.event.repository.default_branch }}

.github/workflows/reusable-unit.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,10 @@ jobs:
3838
env:
3939
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4040

41-
# This date is used to ensure that the PHP compatibility cache is cleared at least once every week.
42-
# http://man7.org/linux/man-pages/man1/date.1.html
43-
- name: "Get last Monday's date"
44-
id: get-date
45-
run: echo "date=$(/bin/date -u --date='last Mon' "+%F")" >> "$GITHUB_OUTPUT"
46-
4741
- name: Install Composer dependencies & cache dependencies
4842
uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # v3
4943
env:
5044
COMPOSER_ROOT_VERSION: dev-${{ github.event.repository.default_branch }}
51-
with:
52-
custom-cache-suffix: ${{ steps.get-date.outputs.date }}
5345

5446
# PHPUnit 10+ may fail a test run when the "old" configuration format is used.
5547
# Luckily, there is a built-in migration tool since PHPUnit 9.3.

0 commit comments

Comments
 (0)