Skip to content

An attempt to fix the failing builds #56

An attempt to fix the failing builds

An attempt to fix the failing builds #56

Workflow file for this run

name: Asset Quality Workflow
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
CI: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Check out PR
env:
GITHUB_TOKEN: ${{ github.token }}
run: gh pr checkout ${{ github.event.pull_request.number }}
- 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
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
git add --verbose .
git diff-index HEAD || git commit -m "Updating generated indices"
git push