Browse Source
Merge pull request #2714 from DarkLordZach/repo-sync-pipeline
Add Repository Sync Pipeline
pull/15/merge
Flame Sage
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
19 additions and
0 deletions
-
.ci/yuzu-repo-sync.yml
|
|
|
@ -0,0 +1,19 @@ |
|
|
|
trigger: |
|
|
|
- master |
|
|
|
|
|
|
|
jobs: |
|
|
|
- job: copy |
|
|
|
displayName: 'Sync Repository' |
|
|
|
pool: |
|
|
|
vmImage: 'ubuntu-latest' |
|
|
|
steps: |
|
|
|
- script: echo 'https://$(GitUsername):$(GitAccessToken)@dev.azure.com' > $HOME/.git-credentials |
|
|
|
displayName: 'Load Credentials' |
|
|
|
- script: git config --global credential.helper store |
|
|
|
displayName: 'Register Credential Helper' |
|
|
|
- script: git remote add other $(GitRepoPushChangesURL) |
|
|
|
displayName: 'Register Repository' |
|
|
|
- script: git push --force other HEAD:$(GitPushBranch) |
|
|
|
displayName: 'Update Code' |
|
|
|
- script: rm -rf $HOME/.git-credentials |
|
|
|
displayName: 'Clear Cached Credentials' |