diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index 3d223e9f4..da37e3194 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -35,10 +35,9 @@ jobs: git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" git config --global user.name "github-actions[bot]" - - name: Update branches + - name: Get branch histories run: | - git fetch origin ${{matrix.target_branch}} --unshallow - git checkout -f ${{matrix.target_branch}} + git fetch origin main --unshallow git status git log -1 --format='%H'