-
Notifications
You must be signed in to change notification settings - Fork 75
/
merge-pr-pipeline.yml
38 lines (31 loc) · 939 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
38
# 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 main.
pr:
- main
schedules:
- cron: "0 */3 * * *"
displayName: Roslyn Merge Tool
branches:
include:
- main
always: true
pool:
vmImage: 'ubuntu-latest'
steps:
- task: UseDotNet@2
displayName: 'Install .NET'
inputs:
version: 9.x
installationPath: $(Agent.ToolsDirectory)/dotnet
includePreviewVersions: true
- script: dotnet --info; 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'