mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-09 16:32:44 +01:00
19 lines
624 B
YAML
19 lines
624 B
YAML
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'
|