-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 1006 Bytes
/
rebuild_phar.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
name: PHP Preprocess and Commit
on:
push:
branches:
- trunk
jobs:
php-preprocess:
runs-on: ubuntu-latest
steps:
- name: Setup SSH Keys
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1' # Change to the desired PHP version
coverage: none
- name: Run PHP preprocess
run: php -dphar.readonly=0 preprocess-wxr.php --bundle
- name: Push rebuilt WordPress to GitHub
run: |
git config --global user.name "deployment_bot"
git config --global user.email "[email protected]"
git add -A
git commit -a -m "Reindex and reformat Blueprints"
git pull --rebase
if [ $? -eq 0 ]; then
git push [email protected]:${{ github.repository }}.git --follow-tags
fi;