Error when creating branch when force=false
Closed this issue · 1 comments
chingor13 commented
In this run: https://github.com/chingor13/actions-test/runs/968409994?check_suite_focus=true The repo was forked, but no branch could be created (the synthtool-templates
branch did not exit).
Adding force: true
to the actions config allowed the branch to be created.
{"level":30,"time":1597090980209,"pid":6,"hostname":"6a82b9da6c74","msg":"Starting GitHub PR workflow..."}
{"level":30,"time":1597090981444,"pid":6,"hostname":"6a82b9da6c74","msg":"Fork successfully exists on actions-test"}
{"level":30,"time":1597090981530,"pid":6,"hostname":"6a82b9da6c74","msg":"Successfully found branch HEAD sha \"4283576b32131ca488e39971031fcffe47ddb3ec\"."}
{"level":30,"time":1597090981650,"pid":6,"hostname":"6a82b9da6c74","msg":"Existing remote branch synthtool-templates found on chingr/actions-test"}
{"level":50,"time":1597090981743,"pid":6,"hostname":"6a82b9da6c74","msg":"Error when creating branch"}
{"level":50,"time":1597090981743,"pid":6,"hostname":"6a82b9da6c74","msg":"Workflow failed"}
chingor13 commented
This might only be after the repo is first forked - in a different run, the first time after forking the repo, the build failed, but a re-run succeeded.