Skip to content

Commit dd74c91

Browse files
committed
ci: Disable merge commit on pr ci workflow
1 parent 4c423c1 commit dd74c91

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/pull_request.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ jobs:
99
contents: write
1010
pull-requests: write
1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
13+
with:
14+
ref: ${{ github.event.pull_request.head.sha }}
1315
- uses: webiny/action-conventional-commits@v1.2.0
1416
- name: Set up JDK 21
1517
uses: actions/setup-java@v3
@@ -23,14 +25,8 @@ jobs:
2325
# cache: npm
2426
- name: Run OpenRewrite # TODO : open pr with all changes
2527
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
2928
- name: Run Spotless # TODO : open pr with all changes
3029
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
3430
- name: Push local changes if necessary
3531
run: |
3632
[[ -z $(git status -s) ]] && WAS_DIRTY=true

0 commit comments

Comments
 (0)