Only try making a spotless fix PR when on the main repo (#52)

This commit is contained in:
Wilhelm Schuster 2025-09-18 10:56:34 +02:00 committed by GitHub
parent 031b79f439
commit 9a64d69ca0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -88,7 +88,11 @@ jobs:
retention-days: 31 retention-days: 31
- name: Attempt to make a PR fixing spotless errors - name: Attempt to make a PR fixing spotless errors
if: ${{ failure() && steps.build_mod.conclusion == 'failure' && github.event_name == 'pull_request' && !github.event.pull_request.draft }} if: >-
${{ failure() && steps.build_mod.conclusion == 'failure'
&& github.event_name == 'pull_request'
&& !github.event.pull_request.draft
&& github.event.pull_request.head.repo.full_name == github.repository }}
run: | run: |
git reset --hard git reset --hard
git checkout "${PR_BRANCH}" git checkout "${PR_BRANCH}"