-
Notifications
You must be signed in to change notification settings - Fork 52
34 lines (31 loc) · 1.27 KB
/
trigger_azdo_ci.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
name: Trigger AzDO CIs
on:
workflow_run:
workflows: [CI]
types:
- completed
branches:
- main
- 'releases/**'
workflow_dispatch:
jobs:
trigger_azdo_ci:
name: Trigger Main CI
runs-on: windows-latest
steps:
- name: Trigger Main CI
uses: Azure/pipelines@v1.2
if: ${{ github.repository == 'ni/grpc-device' && github.event.workflow_run.head_branch == 'main' }}
with:
azure-devops-project-url: 'https://dev.azure.com/ni/DevCentral'
azure-pipeline-name: 'ni-central-grpc_device'
azure-devops-token: ${{ secrets.AZDO_PIPELINE_TRIGGERS }}
azure-pipeline-variables: '{"BRANCH": "main", "EXPORT_NAME": "ni-grpc-device", "PHASE": "d"}'
- name: Trigger Release CI
uses: Azure/pipelines@v1.2
if: ${{ github.repository == 'ni/grpc-device' && startsWith(github.event.workflow_run.head_branch, 'releases') }}
with:
azure-devops-project-url: 'https://dev.azure.com/ni/DevCentral'
azure-pipeline-name: 'ni-central-grpc_device'
azure-devops-token: ${{ secrets.AZDO_PIPELINE_TRIGGERS }}
azure-pipeline-variables: '{"BRANCH": "releases", "EXPORT_NAME": "ni-grpc-device", "PHASE": "f", "RELEASE_BRANCH_OPTION": "--release-branch"}'