Skip to content

Commit 89dee61

Browse files
Checkout code from pull request head for spotless (#3422) (#3424)
* Checkout code from pull request head for spotless Signed-off-by: rithin-pullela-aws <rithinp@amazon.com> * Add name to the ML-Commons checkout Signed-off-by: rithin-pullela-aws <rithinp@amazon.com> --------- Signed-off-by: rithin-pullela-aws <rithinp@amazon.com> (cherry picked from commit 06a2b40) Co-authored-by: Rithin Pullela <rithinp@amazon.com>
1 parent a4d990a commit 89dee61

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)