40 Star 448 Fork 102

GVPSmartIDE / SmartIDE

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
azure-pipelines.yml 889 Bytes
一键复制 编辑 原始数据 按行查看 历史
徐磊 提交于 2023-03-10 07:28 . Only trigger for main branch
# $(github_pat) is in pipeline varialbes
name: $(date:yyyyMMdd)$(rev:.r)_$(Build.BuildId)_$(SourceBranchName)_$(Build.Reason)
resources:
repositories:
- repository: self
type: git
ref: refs/heads/main
trigger:
branches:
include:
- main
stages:
- stage: Sync2GitHub
condition: eq(variables['Build.SourceBranch'], 'refs/heads/main')
jobs:
- job: Sync
displayName: Sync to Github
pool:
vmImage: ubuntu-20.04
steps:
- checkout: self
- task: CmdLine@2
displayName: Sync
inputs:
script: |
git config user.email "smartide@leansoftx.com"
git config user.name "smartide team"
git pull https://github.com/SmartIDE/SmartIDE.git --no-rebase
git push https://$(github_pat)@github.com/SmartIDE/SmartIDE.git refs/remotes/origin/main:refs/heads/main
1
https://gitee.com/smartide/SmartIDE.git
git@gitee.com:smartide/SmartIDE.git
smartide
SmartIDE
SmartIDE
main

搜索帮助