Skip to content

Commit 38c8ca2

Browse files
authored
Merge branch 'main' into try/composer-phar
2 parents 7d9499e + 0ed7acb commit 38c8ca2

File tree

12 files changed

+374
-235
lines changed

12 files changed

+374
-235
lines changed

.github/workflows/code-quality.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
branches:
77
- main
88
- master
9+
schedule:
10+
- cron: '17 2 * * *' # Run every day on a seemly random time.
911

1012
jobs:
1113
code-quality:

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ jobs:
1717

1818
steps:
1919
- name: Checkout code
20-
uses: actions/checkout@v6
20+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2121

2222
- name: Check existence of composer.json file
2323
id: check_composer_file
24-
uses: andstor/file-existence-action@v3
24+
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3
2525
with:
2626
files: "composer.json"
2727

2828
- name: Set up PHP environment
2929
if: steps.check_composer_file.outputs.files_exists == 'true'
30-
uses: shivammathur/setup-php@v2
30+
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2
3131
with:
3232
php-version: 'latest'
3333
ini-values: zend.assertions=1, error_reporting=-1, display_errors=On
@@ -38,7 +38,7 @@ jobs:
3838

3939
- name: Install Composer dependencies & cache dependencies
4040
if: steps.check_composer_file.outputs.files_exists == 'true'
41-
uses: ramsey/composer-install@v3
41+
uses: ramsey/composer-install@a35c6ebd3d08125aaf8852dff361e686a1a67947 # v3
4242
env:
4343
COMPOSER_ROOT_VERSION: dev-${{ github.event.repository.default_branch }}
4444
with:

.github/workflows/deployment.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ jobs:
4949
echo "$CLI_VERSION" > cli_version.txt
5050
5151
- name: Upload WP-CLI version
52-
uses: actions/upload-artifact@v6
52+
uses: actions/upload-artifact@v7
5353
with:
5454
name: cli_version
5555
path: cli_version.txt
5656

5757
- name: Upload manifest file
58-
uses: actions/upload-artifact@v6
58+
uses: actions/upload-artifact@v7
5959
with:
6060
name: manifest
6161
path: vendor/wp-cli/wp-cli/manifest.json
@@ -64,7 +64,7 @@ jobs:
6464
run: php -dphar.readonly=0 utils/make-phar.php wp-cli.phar --version=$CLI_VERSION
6565

6666
- name: Upload built Phar file
67-
uses: actions/upload-artifact@v6
67+
uses: actions/upload-artifact@v7
6868
with:
6969
name: wp-cli-phar
7070
path: wp-cli.phar
@@ -137,7 +137,7 @@ jobs:
137137
sudo sed -i 's/^.*policy.*coder.*none.*PDF.*//' /etc/ImageMagick-6/policy.xml
138138
139139
- name: Download built Phar file
140-
uses: actions/download-artifact@v7
140+
uses: actions/download-artifact@v8
141141
with:
142142
name: wp-cli-phar
143143

@@ -195,7 +195,7 @@ jobs:
195195
token: ${{ secrets.ACTIONS_BOT }}
196196

197197
- name: Download WP-CLI version
198-
uses: actions/download-artifact@v7
198+
uses: actions/download-artifact@v8
199199
with:
200200
name: cli_version
201201

@@ -204,12 +204,12 @@ jobs:
204204
cat cli_version.txt > phar/NIGHTLY_VERSION
205205
206206
- name: Download manifest file
207-
uses: actions/download-artifact@v7
207+
uses: actions/download-artifact@v8
208208
with:
209209
name: manifest
210210

211211
- name: Download built Phar file
212-
uses: actions/download-artifact@v7
212+
uses: actions/download-artifact@v8
213213
with:
214214
name: wp-cli-phar
215215

@@ -314,7 +314,7 @@ jobs:
314314
token: ${{ secrets.ACTIONS_BOT }}
315315

316316
- name: Download built Phar file
317-
uses: actions/download-artifact@v7
317+
uses: actions/download-artifact@v8
318318
with:
319319
name: wp-cli-phar
320320

@@ -368,7 +368,7 @@ jobs:
368368
token: ${{ secrets.ACTIONS_BOT }}
369369

370370
- name: Download built Phar file
371-
uses: actions/download-artifact@v7
371+
uses: actions/download-artifact@v8
372372
with:
373373
name: wp-cli-phar
374374

.github/workflows/issue-triage.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ name: Issue and PR Triage
1313
required: false
1414
type: string
1515

16+
permissions:
17+
issues: write
18+
pull-requests: write
19+
actions: write
20+
contents: read
21+
models: read
22+
1623
jobs:
1724
issue-triage:
1825
uses: wp-cli/.github/.github/workflows/reusable-issue-triage.yml@main

.github/workflows/regenerate-readme.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
- "features/**"
1111
- "README.md"
1212

13+
permissions:
14+
contents: write
15+
pull-requests: write
16+
1317
jobs:
1418
regenerate-readme:
1519
uses: wp-cli/.github/.github/workflows/reusable-regenerate-readme.yml@main

.github/workflows/welcome-new-contributors.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
- main
88
- master
99

10+
permissions:
11+
pull-requests: write
12+
1013
jobs:
1114
welcome:
1215
uses: wp-cli/.github/.github/workflows/reusable-welcome-new-contributors.yml@main

.typos.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[default]
2+
extend-ignore-re = [
3+
"(?Rm)^.*(#|//)\\s*spellchecker:disable-line$",
4+
"(?s)(#|//)\\s*spellchecker:off.*?\\n\\s*(#|//)\\s*spellchecker:on",
5+
"(#|//)\\s*spellchecker:ignore-next-line\\n.*"
6+
]

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"wp-cli/search-replace-command": "^2",
3535
"wp-cli/server-command": "^2",
3636
"wp-cli/shell-command": "^2",
37+
"wp-cli/site-health-command": "^1",
3738
"wp-cli/super-admin-command": "^2",
3839
"wp-cli/widget-command": "^2",
3940
"wp-cli/wp-cli": "dev-main"

0 commit comments

Comments
 (0)