Skip to content

Commit 191cd0b

Browse files
committed
fix(ci): check out with ref to allow auto-commits
1 parent 859b0ef commit 191cd0b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/pr.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
kubernetes: ['v1.17.13','v1.18.12','v1.19.4']
1212
steps:
1313
- uses: actions/checkout@v2
14+
with:
15+
ref: ${{ github.head_ref }} // to avoid cloning in detached state (which would break committing)
1416
- name: Format code
1517
uses: axel-op/googlejavaformat-action@v3
1618
with:

0 commit comments

Comments
 (0)