Skip to content

Deleted usage of forbidden GitHub actions #127

Deleted usage of forbidden GitHub actions

Deleted usage of forbidden GitHub actions #127

Workflow file for this run

name: Fix Code Styling
on: [push]
jobs:
lint:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.1"
extensions: json, dom, curl, libxml, mbstring
coverage: none
- name: Install Pint
run: composer global require laravel/pint
- name: Run Pint
run: pint
- name: Commit linted files
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add .
if git diff --cached --quiet; then
echo "No changes to commit."
else
git commit -m "Fix code styling"
git push
fi