aboutsummaryrefslogtreecommitdiff
path: root/.ci/yuzu-repo-sync.yml
blob: c5b6ba927f6c65200183e715ed8f2fb75f8a1959 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# SPDX-FileCopyrightText: 2019 yuzu Emulator Project
# SPDX-License-Identifier: GPL-2.0-or-later

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'