From 60f5168f070b56b6d39466454b445bfe031c351e Mon Sep 17 00:00:00 2001 From: Ross Wolf <31489089+rw-access@users.noreply.github.com> Date: Thu, 6 May 2021 23:12:57 -0600 Subject: [PATCH] Retrieve branch history of `main` in backport job --- .github/workflows/backport.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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'