diff options
| -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' | ||