File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -68,16 +68,10 @@ def main():
68
68
workflows = firebase_github .list_workflows (args .token , args .workflow , args .branch )
69
69
run_id = 0
70
70
if "workflow_runs" in workflows :
71
- try :
72
- branch_sha = subprocess .check_output (['git' , 'rev-parse' , args .branch ]).decode ('utf-8' ).rstrip ('\n ' )
73
- except subprocess .CalledProcessError as e :
74
- # Failed to get branch SHA, ignore.
75
- branch_sha = None
76
71
for workflow in workflows ['workflow_runs' ]:
77
72
# Use a heuristic to get the new workflow's run ID.
78
73
# Must match the branch name and commit sha, and be queued/in progress.
79
74
if (workflow ['status' ] in ('queued' , 'in_progress' ) and
80
- (workflow ['head_sha' ] == branch_sha or not branch_sha ) and
81
75
workflow ['head_branch' ] == args .branch ):
82
76
run_id = workflow ['id' ]
83
77
break
You can’t perform that action at this time.
0 commit comments