Skip to content

Trigger AzDO CIs

Trigger AzDO CIs #3

name: Trigger AzDO CIs
on:
workflow_run:
workflows: [CI]
types:
- completed
branches:
- main
workflow_dispatch:
jobs:
trigger_azdo_ci:
name: Trigger Main CI
runs-on: windows-latest
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Trigger Main CI
uses: Azure/[email protected]
if: ${{ github.repository == 'ni/ni-apis' && github.event.workflow_run.head_branch == 'main' }}
with:
azure-devops-project-url: 'https://dev.azure.com/ni/DevCentral'
azure-pipeline-name: 'ASW-ni-apis-ci'
azure-devops-token: ${{ secrets.AZDO_PIPELINE_TRIGGERS }}
azure-pipeline-variables: '{"BRANCH": "main", "EXPORT_NAME": "ni-apis", "PHASE": "d"}'