mirror of
https://github.com/GTNewHorizons/GTNH-Actions-Workflows.git
synced 2025-10-13 12:50:11 +02:00
Only try making a spotless fix PR when on the main repo (#52)
This commit is contained in:
parent
031b79f439
commit
9a64d69ca0
6
.github/workflows/build-and-test.yml
vendored
6
.github/workflows/build-and-test.yml
vendored
@ -88,7 +88,11 @@ jobs:
|
||||
retention-days: 31
|
||||
|
||||
- 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: |
|
||||
git reset --hard
|
||||
git checkout "${PR_BRANCH}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user