From 11bdaebbec4fa9ece1dbc02d2cdf12f1ff0ca534 Mon Sep 17 00:00:00 2001 From: asciito Date: Sun, 8 Oct 2023 11:34:03 -0600 Subject: [PATCH] feat: add run-pint.yml The new workflow fix code styling with the PHP code --- .github/workflows/run-pint.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/run-pint.yml diff --git a/.github/workflows/run-pint.yml b/.github/workflows/run-pint.yml new file mode 100644 index 0000000..35157a0 --- /dev/null +++ b/.github/workflows/run-pint.yml @@ -0,0 +1,27 @@ +name: Fix PHP code style +run-name: Fixing style on ${{ github.ref_name }} +on: + push: + paths: + - "**.php" + +jobs: + pint-code-style: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref }} + + - name: Fix PHP code style + uses: aglipanci/laravel-pint-action@2.3.0 + with: + preset: laravel + + - name: Commit changes + uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: "chore: fix styling" +