Skip to content

Commit

Permalink
[ci][backport-pr] Fetch all commits
Browse files Browse the repository at this point in the history
Fixes a bug in which the target commit isn't checked out by default.

gherrit-pr-id: I8c3db36d20b511c31ec774db68896f2fe4b539bb
  • Loading branch information
joshlf committed Nov 5, 2024
1 parent 3d5a8a6 commit 9989d82
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/backport-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: ${{ github.event.inputs.target_branch }}
# Check out the entire repository so that the target commit is checked
# out (by default, only fetches the single commit identified by the
# `ref` argument).
fetch-depth: 0
persist-credentials: false
- name: Cherry-pick commit
run: |
Expand Down

0 comments on commit 9989d82

Please sign in to comment.