-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6f69b0e
commit 3b204ef
Showing
1 changed file
with
6 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,12 @@ jobs: | |
- name: Run spotless | ||
run: ./gradlew :spotlessApply | ||
|
||
- name: Check for modified files | ||
id: git-check | ||
run: echo "modified=$(if git diff-index --quiet HEAD --; then echo "false"; else echo "true"; fi)" >> $GITHUB_OUTPUT | ||
|
||
- name: Create temporary branch | ||
if: steps.git-check.outputs.modified == 'true' | ||
run: | | ||
git config --global user.name 'Bram van Heuveln' | ||
git config --global user.email '[email protected]' | ||
|
@@ -39,6 +44,7 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Open pull request | ||
if: steps.git-check.outputs.modified == 'true' | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
title: Automated Java code formatting changes | ||
|