wip #16
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: Laravel Pint | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
laravel-pint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/[email protected] | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Setup PHP and Composer | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.3' | |
tools: composer:v2 | |
- name: Install Laravel Pint | |
run: composer global require laravel/pint | |
- name: Run Pint | |
run: pint | |
- name: Push Changes Back to Repo | |
run: | | |
git config user.name "gh-actions" | |
git config user.email "[email protected]" | |
git add . | |
git commit -m "Laravel Pint" || exit 0 | |
git push |