From 6efbd3b739468bddd55c01aae5a3dd2f1bd1c19c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 25 Aug 2026 04:04:00 +0000 Subject: [PATCH] Fix lint-fix workflow to skip fork PRs Co-authored-by: R0Wi <19730957+R0Wi@users.noreply.github.com> --- .github/workflows/lint-fix.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint-fix.yml b/.github/workflows/lint-fix.yml index 7565ba0..8e9c33b 100644 --- a/.github/workflows/lint-fix.yml +++ b/.github/workflows/lint-fix.yml @@ -5,8 +5,10 @@ on: jobs: php-cs-fixer: - name: php-cs-fixer + name: php-cs-fixer (${{ matrix.php-versions }}) runs-on: ubuntu-22.04 + # Skip for fork PRs since we cannot push commits back to a fork + if: github.event.pull_request.head.repo.full_name == github.repository strategy: matrix: @@ -17,6 +19,7 @@ jobs: uses: actions/checkout@v5 with: ref: ${{ github.head_ref }} + repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Set up php uses: shivammathur/setup-php@v2