diff options
| author | 2019-07-10 22:22:04 -0400 | |
|---|---|---|
| committer | 2019-07-10 22:22:04 -0400 | |
| commit | 0b3901bdd0ca918e37730ec8edb85035740bf072 (patch) | |
| tree | 48af0a1fc1e11ffa75bb5bccceb0efe57adcf1e8 | |
| parent | Merge pull request #2697 from lioncash/doc (diff) | |
| parent | Add Repository Sync Pipeline (diff) | |
| download | yuzu-0b3901bdd0ca918e37730ec8edb85035740bf072.tar.gz yuzu-0b3901bdd0ca918e37730ec8edb85035740bf072.tar.xz yuzu-0b3901bdd0ca918e37730ec8edb85035740bf072.zip | |
Merge pull request #2714 from DarkLordZach/repo-sync-pipeline
Add Repository Sync Pipeline
| -rw-r--r-- | .ci/yuzu-repo-sync.yml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/.ci/yuzu-repo-sync.yml b/.ci/yuzu-repo-sync.yml new file mode 100644 index 000000000..602e298a6 --- /dev/null +++ b/.ci/yuzu-repo-sync.yml | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | trigger: | ||
| 2 | - master | ||
| 3 | |||
| 4 | jobs: | ||
| 5 | - job: copy | ||
| 6 | displayName: 'Sync Repository' | ||
| 7 | pool: | ||
| 8 | vmImage: 'ubuntu-latest' | ||
| 9 | steps: | ||
| 10 | - script: echo 'https://$(GitUsername):$(GitAccessToken)@dev.azure.com' > $HOME/.git-credentials | ||
| 11 | displayName: 'Load Credentials' | ||
| 12 | - script: git config --global credential.helper store | ||
| 13 | displayName: 'Register Credential Helper' | ||
| 14 | - script: git remote add other $(GitRepoPushChangesURL) | ||
| 15 | displayName: 'Register Repository' | ||
| 16 | - script: git push --force other HEAD:$(GitPushBranch) | ||
| 17 | displayName: 'Update Code' | ||
| 18 | - script: rm -rf $HOME/.git-credentials | ||
| 19 | displayName: 'Clear Cached Credentials' | ||