Skip to content

Commit 8afdec0

Browse files
authored
Check out merge commit before creating patch (#2171)
1 parent b77bdf2 commit 8afdec0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/serverless-patch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- uses: actions/checkout@v4
3030
with:
3131
repository: elastic/elasticsearch-js
32-
ref: main
32+
ref: '${{ github.event.pull_request.merge_commit_sha }}'
3333
- name: Generate patch file
3434
run: |
3535
git format-patch -1 --stdout ${{ github.event.pull_request.merge_commit_sha }} > /tmp/patch.diff

0 commit comments

Comments
 (0)