Skip to content

Commit 1084d8d

Browse files
committed
append to #67 part 2: make more changes to gradle.yml
1 parent 49d6729 commit 1084d8d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/gradle.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
- name: Checkout branch
1717
uses: actions/checkout@v4
1818
with:
19+
ref: ${{ github.head_ref }}
1920
token: ${{ secrets.GITHUB_TOKEN }}
2021

2122
- name: Make gradlew executable
@@ -38,7 +39,7 @@ jobs:
3839
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
3940
git add .
4041
git diff --cached --quiet || git commit -m "chore: auto-fix Spotless formatting"
41-
git push
42+
git push origin HEAD:${{ github.head_ref }}
4243
4344
- name: Build with Gradle Wrapper
4445
run: ./gradlew build

0 commit comments

Comments
 (0)