Retrieve branch history of main in backport job
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user