mirror of
https://github.com/LITW-Refined/GTNH-Actions-Workflows.git
synced 2025-12-23 11:18:32 +00:00
do not send spotless pr if draft (#17)
This commit is contained in:
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
|
run: ./gradlew --info --stacktrace build
|
||||||
|
|
||||||
- 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' }}
|
if: ${{ failure() && steps.build_mod.conclusion == 'failure' && github.event_name == 'pull_request' && !github.event.pull_request.draft }}
|
||||||
run: |
|
run: |
|
||||||
./gradlew --info --stacktrace spotlessApply || exit 1
|
./gradlew --info --stacktrace spotlessApply || exit 1
|
||||||
git diff --exit-code && exit 1
|
git diff --exit-code && exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user