Skip to content
代码片段 群组 项目
提交 30b0a6e4 编辑于 作者: Shivani Tipnis's avatar Shivani Tipnis
浏览文件

ci: Error handling for test branch creation in yml script

上级 cd22e985
No related branches found
No related tags found
无相关合并请求
......@@ -33,7 +33,7 @@ deploy_test_github:
- git remote remove github &>/dev/null || true
- git remote add github git@github.com:espressif/esp-hosted.git
# Using test branch
- git branch ${TEST_BRANCH}
- git branch ${TEST_BRANCH} 2>&1 || echo "Branch exists" && git branch -D ${TEST_BRANCH} 2>&1 || echo "Branch deleted" && git branch ${TEST_BRANCH} 2>&1 && echo "Branch created"
- git push github "${CI_COMMIT_SHA}:refs/heads/${TEST_BRANCH}"
.deploy_master_github:
......@@ -56,4 +56,5 @@ deploy_test_github:
- git remote remove github &>/dev/null || true
- git remote add github git@github.com:espressif/esp-hosted.git
# Using master branch
#- git push github "${CI_COMMIT_SHA}:refs/heads/${MASTER_BRANCH}"
\ No newline at end of file
#- git push github "${CI_COMMIT_SHA}:refs/heads/${MASTER_BRANCH}"
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册