Skip to content

Commit b77bdf2

Browse files
authored
Ensure patch can generate by checking out main branch (#2170)
1 parent d61d54a commit b77bdf2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/serverless-patch.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ on:
77
- labeled
88

99
jobs:
10-
backport:
11-
name: Backport
10+
apply-patch:
11+
name: Apply patch
1212
runs-on: ubuntu-latest
1313
# Only react to merged PRs for security reasons.
1414
# See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target.
@@ -27,6 +27,9 @@ jobs:
2727
)
2828
steps:
2929
- uses: actions/checkout@v4
30+
with:
31+
repository: elastic/elasticsearch-js
32+
ref: main
3033
- name: Generate patch file
3134
run: |
3235
git format-patch -1 --stdout ${{ github.event.pull_request.merge_commit_sha }} > /tmp/patch.diff

0 commit comments

Comments
 (0)