Retrieve branch history of main in backport job

This commit is contained in:
Ross Wolf
2021-05-06 23:12:57 -06:00
committed by GitHub
parent 700c63d7d5
commit 60f5168f07
+2 -3
View File
@@ -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'