File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 9
9
contents : write
10
10
pull-requests : write
11
11
steps :
12
- - uses : actions/checkout@v3
12
+ - uses : actions/checkout@v4
13
+ with :
14
+ ref : ${{ github.event.pull_request.head.sha }}
13
15
- uses : webiny/action-conventional-commits@v1.2.0
14
16
- name : Set up JDK 21
15
17
uses : actions/setup-java@v3
23
25
# cache: npm
24
26
- name : Run OpenRewrite # TODO : open pr with all changes
25
27
run : ./mvnw rewrite:run -P pr
26
- - name : Check if there are refactored changes
27
- id : changes-openrewrite
28
- uses : UnicornGlobal/has-changes-action@v1.0.11
29
28
- name : Run Spotless # TODO : open pr with all changes
30
29
run : ./mvnw spotless:apply -P pr
31
- - name : Check if there are style changes
32
- id : changes-spotless
33
- uses : UnicornGlobal/has-changes-action@v1.0.11
34
30
- name : Push local changes if necessary
35
31
run : |
36
32
[[ -z $(git status -s) ]] && WAS_DIRTY=true
You can’t perform that action at this time.
0 commit comments