File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -30,17 +30,21 @@ jobs:
30
30
with :
31
31
repository : elastic/elasticsearch-js
32
32
ref : ' ${{ github.event.pull_request.merge_commit_sha }}'
33
- - name : Generate patch file
34
- run : |
35
- git format-patch -1 --stdout ${{ github.event.pull_request.merge_commit_sha }} > /tmp/patch.diff
33
+ path : elasticsearch-js
36
34
- uses : actions/checkout@v4
37
35
with :
38
36
repository : elastic/elasticsearch-serverless-js
39
37
ref : main
40
- - name : Apply patch to serverless
38
+ path : elasticsearch-serverless-js
39
+ - name : Generate patch file
40
+ run : |
41
+ cd $GITHUB_WORKSPACE/elasticsearch-js
42
+ git format-patch -1 --stdout ${{ github.event.pull_request.merge_commit_sha }} > /tmp/patch.diff
43
+ - name : Apply patch file
41
44
run : |
45
+ cd $GITHUB_WORKSPACE/elasticsearch-serverless-js
42
46
git checkout -b apply-patch-${{ github.event.pull_request.id }}
43
- git apply -C1 --recount --reject /tmp/patch.diff
47
+ git apply -C1 --recount --reject /tmp/patch.diff || exit 0
44
48
comment='Patch applied from elastic/elasticsearch-js#${{ github.event.pull_request.id }}'
45
49
for f in $(find . -name '*.rej'); do
46
50
comment="$comment\n\n## Rejected patch \`$f`\:\n\`\`\`\n$(cat $f)\n\`\`\`"
You can’t perform that action at this time.
0 commit comments