-
Notifications
You must be signed in to change notification settings - Fork 43
44 lines (35 loc) · 990 Bytes
/
php.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
41
42
43
44
name: Asset Quality Workflow
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
CI: true
jobs:
build:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Checkout PR
run: gh pr checkout ${{ github.event.pull_request.number }}
env:
GH_TOKEN: ${{ github.token }}
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: latest
- name: Execute PHP script
run: |
php util/model.php --no-warn --check --update --process-repo --verbose
- name: Commit list of files back into the repository
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add --verbose .
git diff-index HEAD || git commit -m "Updating generated Repo indices"
git push