mirror of
https://github.com/GTNewHorizons/GTNH-Actions-Workflows.git
synced 2025-07-03 02:41:29 +02:00
do not send spotless pr if draft (#17)
This commit is contained in:
parent
5fdcb7dbff
commit
e60ae77d0a
2
.github/workflows/build-and-test.yml
vendored
2
.github/workflows/build-and-test.yml
vendored
@ -55,7 +55,7 @@ jobs:
|
||||
run: ./gradlew --info --stacktrace build
|
||||
|
||||
- name: Attempt to make a PR fixing spotless errors
|
||||
if: ${{ failure() && steps.build_mod.conclusion == 'failure' && github.event_name == 'pull_request' }}
|
||||
if: ${{ failure() && steps.build_mod.conclusion == 'failure' && github.event_name == 'pull_request' && !github.event.pull_request.draft }}
|
||||
run: |
|
||||
./gradlew --info --stacktrace spotlessApply || exit 1
|
||||
git diff --exit-code && exit 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user