yuzu-repo-sync.yml 722 B

1234567891011121314151617181920212223
  1. # SPDX-FileCopyrightText: 2019 yuzu Emulator Project
  2. # SPDX-License-Identifier: GPL-2.0-or-later
  3. trigger:
  4. - master
  5. jobs:
  6. - job: copy
  7. displayName: 'Sync Repository'
  8. pool:
  9. vmImage: 'ubuntu-latest'
  10. steps:
  11. - script: echo 'https://$(GitUsername):$(GitAccessToken)@dev.azure.com' > $HOME/.git-credentials
  12. displayName: 'Load Credentials'
  13. - script: git config --global credential.helper store
  14. displayName: 'Register Credential Helper'
  15. - script: git remote add other $(GitRepoPushChangesURL)
  16. displayName: 'Register Repository'
  17. - script: git push --force other HEAD:$(GitPushBranch)
  18. displayName: 'Update Code'
  19. - script: rm -rf $HOME/.git-credentials
  20. displayName: 'Clear Cached Credentials'