Skip to content

Update checkout action to v6 in workflows #10

Update checkout action to v6 in workflows

Update checkout action to v6 in workflows #10

Workflow file for this run

name: Fix Code Style
on:
push:
jobs:
phplint:
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
ref: ${{ github.head_ref }}
persist-credentials: true
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v46
with:
files: |
**.php
- name: "laravel-pint"
uses: aglipanci/laravel-pint-action@v2
with:
preset: laravel
verboseMode: true
onlyDirty: true
- name: Commit linted files
uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: Fix styling