Automatically check model & create repo files #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Asset Quality Workflow | |
on: [push, pull_request] | |
env: | |
CI: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v2 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: latest | |
- name: Execute PHP script | |
run: | | |
git status | |
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 status | |
git add --verbose . | |
git diff-index HEAD || git commit -m "Updating generated Repo indices" | |
git push |