Skip to content

Commit 647cd15

Browse files
authored
Merge pull request #606 from wp-cli/fix/workflow
2 parents 37f2957 + 5dfefb6 commit 647cd15

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/regenerate-handbook.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,21 @@ jobs:
1616
- name: Check out source code
1717
uses: actions/checkout@v6
1818

19-
- name: Set up PHP
19+
- name: Set up PHP environment
2020
uses: shivammathur/setup-php@v2
2121
with:
2222
php-version: 'latest'
23-
coverage: none
23+
coverage: 'none'
24+
env:
25+
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2426

25-
- name: Install Composer dependencies
26-
run: composer install --no-dev
27+
- name: Install Composer dependencies & cache dependencies
28+
uses: "ramsey/composer-install@v3"
29+
env:
30+
COMPOSER_ROOT_VERSION: dev-${{ github.event.repository.default_branch }}
31+
with:
32+
# Bust the cache at least once a month - output format: YYYY-MM.
33+
custom-cache-suffix: $(date -u "+%Y-%m")
2734

2835
- name: Download WP-CLI nightly
2936
run: |

0 commit comments

Comments
 (0)