From 05be790280d0d1cd3df148812fcb47eae5e8bd98 Mon Sep 17 00:00:00 2001 From: Ben Word Date: Tue, 4 Oct 2022 09:22:41 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20CI:=20Run=20Pint=20(#3088)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/formatting.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/formatting.yml diff --git a/.github/workflows/formatting.yml b/.github/workflows/formatting.yml new file mode 100644 index 0000000..7bdc5cf --- /dev/null +++ b/.github/workflows/formatting.yml @@ -0,0 +1,28 @@ +name: Formatting + +on: + pull_request: + branches: + - main + +jobs: + format: + name: Formatting + runs-on: ubuntu-latest + if: "!contains(github.event.head_commit.message, '[ci skip]')" + steps: + - name: Checkout the project + uses: actions/checkout@v3 + with: + ref: ${{ github.head_ref }} + + - name: Run Laravel Pint + uses: aglipanci/laravel-pint-action@1.0.0 + with: + preset: laravel + + - name: Commit changes + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: 🎨 Run Pint + skip_fetch: true