Check out merge commit before creating patch (#2171)

This commit is contained in:
Josh Mock
2024-03-21 16:25:09 -05:00
committed by GitHub
parent b77bdf2a79
commit 8afdec052a

View File

@ -29,7 +29,7 @@ jobs:
- uses: actions/checkout@v4
with:
repository: elastic/elasticsearch-js
ref: main
ref: '${{ github.event.pull_request.merge_commit_sha }}'
- name: Generate patch file
run: |
git format-patch -1 --stdout ${{ github.event.pull_request.merge_commit_sha }} > /tmp/patch.diff