workflow: When updating the issueXX branch, use force push

Otherwise if you try to update the branch with a new /cherry-pick
from the same issue you will run into problems similar as to the
one shown in this workflow:
https://github.com/llvm/llvm-project/runs/5864672298?check_suite_focus=true

Reviewed By: tstellar

Differential Revision: https://reviews.llvm.org/D123365
This commit is contained in:
Tobias Hieta 2022-04-08 09:28:22 +02:00
parent e758b77161
commit 1889170aeb

View file

@ -185,7 +185,7 @@ class ReleaseWorkflow:
push_url = self.push_url push_url = self.push_url
print('Pushing to {} {}'.format(push_url, branch_name)) print('Pushing to {} {}'.format(push_url, branch_name))
local_repo.git.push(push_url, 'HEAD:{}'.format(branch_name)) local_repo.git.push(push_url, 'HEAD:{}'.format(branch_name), force=True)
self.issue_notify_branch() self.issue_notify_branch()
self.issue_remove_cherry_pick_failed_label() self.issue_remove_cherry_pick_failed_label()