Skip to content

Commit

Permalink
Ensure patch can generate by checking out main branch (#2170)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshMock committed Mar 21, 2024
1 parent d61d54a commit b77bdf2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/serverless-patch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
- labeled

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

0 comments on commit b77bdf2

Please sign in to comment.