fix(ci): Run spotlessApply on master too
This commit is contained in:
1 parent
c954da3717
commit
e50fb8b7c2
1 file changed
+8
-6
@@ -36,13 +36,15 @@ jobs:
|
|||||||
uses: gradle/actions/setup-gradle@v6
|
uses: gradle/actions/setup-gradle@v6
|
||||||
|
|
||||||
- name: Apply Spotless and push formatting changes
|
- name: Apply Spotless and push formatting changes
|
||||||
# Only pull request branches from this repository, where the formatting
|
# Only pull request branches from this repository and on master,
|
||||||
# commit can be pushed back. Everywhere else the spotlessCheck inside
|
# where the formatting commit can be pushed back.
|
||||||
# the check task must fail on violations instead of hiding them.
|
# Everywhere else the spotlessCheck inside the check task must
|
||||||
|
# fail on violations instead of hiding them.
|
||||||
if: >-
|
if: >-
|
||||||
github.event_name == 'pull_request' &&
|
(github.event_name == 'push' && github.ref_name == github.event.repository.default_branch)
|
||||||
github.event.pull_request.head.repo.full_name == github.repository &&
|
|| (github.event_name == 'pull_request'
|
||||||
github.event.pull_request.user.login != 'renovate[bot]'
|
&& github.event.pull_request.head.repo.full_name == github.repository
|
||||||
|
&& github.event.pull_request.user.login != 'renovate[bot]')
|
||||||
run: |
|
run: |
|
||||||
./gradlew spotlessApply
|
./gradlew spotlessApply
|
||||||
if git diff --quiet; then
|
if git diff --quiet; then
|
||||||
|
|||||||
Reference in new issue
Block a user