forked from dotnet/roslyn-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
merge-pr-pipeline.yml
37 lines (30 loc) · 914 Bytes
/
merge-pr-pipeline.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Pipeline to create Github merge PRs using the dotnet bot.
variables:
# Variable group for the bot secret.
- group: RoslynMergeBot
- name: isDryRun
value: $[eq(variables['Build.Reason'], 'PullRequest')]
- name: isAutomated
value: true
# Make sure the pipeline doesn't build on commits.
trigger: none
# Trigger dryrun on PRs to master.
pr:
- master
schedules:
- cron: "0 */3 * * *"
displayName: Roslyn Merge Tool
branches:
include:
- master
always: true
pool:
vmImage: 'ubuntu-latest'
steps:
- task: UseDotNet@2
displayName: 'Install .NET Core SDKs'
inputs:
useGlobalJson: true
installationPath: $(Agent.ToolsDirectory)/dotnet
- script: dotnet run -p $(Build.SourcesDirectory)/src/GitHubCreateMergePRs/GitHubCreateMergePRs.csproj --isDryRun=$(isDryRun) --isAutomated=$(isAutomated) --githubToken=$(BotAccount-dotnet-bot-repo-PAT)
displayName: 'Run GitHub Create Merge PRs'