Skip to content

Commit 06a2b40

Browse files
Checkout code from pull request head for spotless (opensearch-project#3422)
* Checkout code from pull request head for spotless Signed-off-by: rithin-pullela-aws <[email protected]> * Add name to the ML-Commons checkout Signed-off-by: rithin-pullela-aws <[email protected]> --------- Signed-off-by: rithin-pullela-aws <[email protected]>
1 parent 1659a60 commit 06a2b40

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/CI-workflow.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ jobs:
2626
if: github.repository == 'opensearch-project/ml-commons'
2727
runs-on: ubuntu-latest
2828
steps:
29-
- uses: actions/checkout@v4
29+
- name: Checkout MLCommons
30+
uses: actions/checkout@v4
31+
with:
32+
ref: ${{ github.event.pull_request.head.sha }}
3033
# Spotless requires JDK 17+
3134
- name: Setup Java 21
3235
uses: actions/setup-java@v1

0 commit comments

Comments
 (0)