-
Notifications
You must be signed in to change notification settings - Fork 30
40 lines (34 loc) · 1.07 KB
/
content-update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Update existing content
on:
workflow_dispatch:
push:
branches: [trunk]
permissions:
contents: write
pull-requests: write
jobs:
content-update:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
ref: trunk
- name: Setup
uses: WordPress/wporg-repo-tools/.github/actions/setup@trunk
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Run the content update
run: |
chmod -R ugo+w source/wp-content/themes/wporg-main-2022/
yarn wp-env start
yarn build:patterns
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
add-paths: source/wp-content/themes/wporg-main-2022/**/*.php
title: 'Content updates from Page Editor'
commit-message: '[automated] Sync content from Page Editor.'
body: |
The content has changed in the Page Editor.
Please review, merge, and deploy.