From 4f39b4cea1a58b7c8220211ea96ea11d21eb0ac5 Mon Sep 17 00:00:00 2001 From: MDW Date: Tue, 5 Dec 2023 00:22:17 +0100 Subject: [PATCH] fixup! Automatic php-cs-fixer with commit --- .github/workflows/phpcsfixer.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/phpcsfixer.yaml b/.github/workflows/phpcsfixer.yaml index 4422157cecd76..b67825a9dd00a 100644 --- a/.github/workflows/phpcsfixer.yaml +++ b/.github/workflows/phpcsfixer.yaml @@ -13,17 +13,17 @@ jobs: env - name: Fetch up to merge base on push uses: BioData/fetch-through-merge-base@v0 - timeout-minutes: 2 + timeout-minutes: 1 if: github.event_name == 'push' with: base_ref: develop head_ref: ${{ github.sha }} - name: Fetch up to merge base on pull uses: BioData/fetch-through-merge-base@v0 - timeout-minutes: 2 + timeout-minutes: 1 if: github.event_name == 'pull_request' with: - head_ref: ${{ github.ref }} + head_ref: ${{ github.ref_name }} - name: Setup PHP uses: shivammathur/setup-php@v2 with: @@ -71,9 +71,9 @@ jobs: retention-days: 2 - name: Commit changes run: | + git diff || exit 0 git config user.name github-actions git config user.email github-actions@github.com - git diff git add "*.php" git commit -m "qual: PHP CS FIXER Github Action" git push