do not send spotless pr if draft (#17)

This commit is contained in:
Glease 2022-11-17 16:22:52 +08:00 committed by GitHub
parent 5fdcb7dbff
commit e60ae77d0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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