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