-
Notifications
You must be signed in to change notification settings - Fork 43
42 lines (34 loc) · 1.24 KB
/
RebuildAllAssets.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
name: Rebuild All Model Assets
# Only need to handle pushes to 'main' because merged PRs do that
# along with direct pushes.
on:
push:
branches:
- 'main'
env:
CI: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: latest
- name: Execute PHP script to update Repo
run: |
php util/model.php --no-warn --update --process-repo
- name: Commit changes to a new branch
uses: EndBug/add-and-commit@v9
with:
# Defaults for most parameters are used
# Action assiged to "github_actor" (used by default with 'default_author')
# This action merges all changes into 'main'
# The way the action should handle pathspec errors from the add and remove commands. Three options are available:
# - ignore -> errors will be logged but the step won't fail
# - exitImmediately -> the action will stop right away, and the step will fail
# - exitAtEnd -> the action will go on, every pathspec error will be logged at the end, the step will fail.
# Default: ignore
pathspec_error_handling: exitAtEnd