Must set committer info to apply a patch (#2187)

This commit is contained in:
Josh Mock
2024-03-27 10:42:53 -05:00
committed by GitHub
parent 6e63530801
commit 113b32258d

View File

@ -10,6 +10,10 @@ pr_shortcode="elastic/elasticsearch-js#$pull_request_id"
cd "$GITHUB_WORKSPACE/stack"
git format-patch -1 --stdout "$merge_commit_sha" > /tmp/patch.diff
# set committer info
git config --global user.email "elasticmachine@users.noreply.github.com"
git config --global user.name "Elastic Machine"
# apply patch file
cd "$GITHUB_WORKSPACE/serverless"
git checkout -b "apply-patch-$pull_request_id"