Fix spotless PR git commands (#21)

I was using the wrong git commands before, this should work, at least it does locally for me
This commit is contained in:
Raven Szewczyk 2023-01-28 16:25:26 +00:00 committed by GitHub
parent 4d36fa7769
commit 308e77fb0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,7 +67,8 @@ jobs:
- 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 }}
run: |
git reset --hard "${PR_BRANCH}"
git reset --hard
git checkout --theirs "${PR_BRANCH}"
./gradlew --info --stacktrace spotlessApply || exit 1
git diff --exit-code && exit 1
git config user.name "GitHub GTNH Actions"