mirror of
https://github.com/coder/code-server.git
synced 2024-12-18 23:21:44 +03:00
eae5d8c807
These conflicts will be resolved in the following commits. We do it this way so that PR review is possible.
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
trigger:
|
|
branches:
|
|
include: ["master", "release/*"]
|
|
pr:
|
|
branches:
|
|
include: ["master", "release/*"]
|
|
|
|
steps:
|
|
- task: NodeTool@0
|
|
inputs:
|
|
versionSpec: "12.18.3"
|
|
|
|
- task: AzureKeyVault@1
|
|
displayName: "Azure Key Vault: Get Secrets"
|
|
inputs:
|
|
azureSubscription: "vscode-builds-subscription"
|
|
KeyVaultName: vscode
|
|
|
|
- script: |
|
|
set -e
|
|
|
|
cat << EOF > ~/.netrc
|
|
machine github.com
|
|
login vscode
|
|
password $(github-distro-mixin-password)
|
|
EOF
|
|
|
|
git config user.email "vscode@microsoft.com"
|
|
git config user.name "VSCode"
|
|
|
|
git remote add distro "https://github.com/$VSCODE_MIXIN_REPO.git"
|
|
git fetch distro
|
|
|
|
# Push master branch into oss/master
|
|
git push distro origin/master:refs/heads/oss/master
|
|
|
|
# Push every release branch into oss/release
|
|
git for-each-ref --format="%(refname:short)" refs/remotes/origin/release/* | sed 's/^origin\/\(.*\)$/\0:refs\/heads\/oss\/\1/' | xargs git push distro
|
|
|
|
git merge $(node -p "require('./package.json').distro")
|
|
|
|
displayName: Sync & Merge Distro
|