Skip to content

Commit 5273faf

Browse files
committed
Use changelog from release script
1 parent 27e7e4f commit 5273faf

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,13 @@ name: Release
33
on:
44
schedule:
55
- cron: "0 8 * * 1" # At 08:00 on Monday.
6-
push:
7-
branches:
8-
- main
9-
- master
6+
workflow_dispatch:
107

118
jobs:
129
update:
1310
name: Update version
1411
runs-on: ubuntu-latest
15-
timeout-minutes: 3
12+
timeout-minutes: 10
1613

1714
steps:
1815
- name: Check out repository
@@ -21,7 +18,7 @@ jobs:
2118
- name: Install pnpm
2219
uses: pnpm/action-setup@v4
2320
with:
24-
version: 9
21+
version: 9
2522

2623
- name: Install Node.js LTS
2724
uses: actions/setup-node@v4
@@ -36,12 +33,12 @@ jobs:
3633
run: pnpm build
3734

3835
- name: Install PHP
39-
uses: "shivammathur/setup-php@v2"
36+
uses: shivammathur/setup-php@v2
4037
with:
41-
php-version: "latest"
38+
php-version: 'latest'
4239

4340
- name: Install Composer
44-
uses: "ramsey/composer-install@v3"
41+
uses: ramsey/composer-install@v3
4542

4643
- name: Downgrade PHP code to the minimum version WordPress requires
4744
run: vendor/bin/rector --ansi
@@ -50,8 +47,7 @@ jobs:
5047
run: find . -name "*.php" -type f -not \( -path "./vendor/*" -o -path "./node_modules/*" \) -print0 | xargs -0 -n1 php -l
5148

5249
- name: Install jq
53-
run: |
54-
sudo apt-get install -y jq
50+
run: sudo apt-get install -y jq
5551

5652
- name: Run release.sh script
5753
id: script
@@ -65,9 +61,9 @@ jobs:
6561
run: |
6662
git config user.name "GitHub Actions"
6763
git config user.email "[email protected]"
68-
git pull
64+
git pull --rebase
6965
git add .
70-
git commit -m "Update version to support WordPress ${{ steps.script.outputs.tested-up-to }}"
66+
git commit -m "${{ steps.script.outputs.release-name }}"
7167
git push
7268
7369
- name: Create release
@@ -78,8 +74,8 @@ jobs:
7874
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7975
with:
8076
tag_name: ${{ steps.script.outputs.stable-tag }}
81-
release_name: Add support for WordPress ${{ steps.script.outputs.tested-up-to }}
82-
body: Upgrade to WordPress ${{ steps.script.outputs.tested-up-to }}
77+
release_name: ${{ steps.script.outputs.release-name }}
78+
body: ${{ steps.script.outputs.release-body }}
8379
draft: false
8480
prerelease: false
8581

0 commit comments

Comments
 (0)