generated from ni/github-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 6
29 lines (25 loc) · 1.34 KB
/
pr-build.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
name: pr-build
on:
workflow_run:
workflows: ["pr-intake"]
types:
- in_progress
run-name: "PR Build for pr-intake #${{ github.event.workflow_run.run_number }}"
env:
GITHUB_MixedSignalTestLibrary_REPO_OWNER: ${{ github.event.workflow_run.head_repository.owner.login }}
GITHUB_MixedSignalTestLibrary_REPO_NAME: ${{ github.event.workflow_run.head_repository.name }}
GITHUB_MixedSignalTestLibrary_BRANCH_NAME: ${{ github.event.workflow_run.head_branch }}
jobs:
build:
name: Call Azure Pre Build Pipeline
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Trigger Azure Pipeline for Pre Build
uses: enfa/[email protected]
with:
azure-devops-project-url: https://ni.visualstudio.com/DevCentral
azure-pipeline-name: 'MixedSignalLibrary_PR_GitHub'
azure-devops-token: ${{ secrets.AZURE_DEVOPS_TOKEN }}
azure-pipeline-variables: '{"GITHUB_MixedSignalTestLibrary_REPO_OWNER": "${{ env.GITHUB_MixedSignalTestLibrary_REPO_OWNER }}", "GITHUB_MixedSignalTestLibrary_REPO_NAME": "${{ env.GITHUB_MixedSignalTestLibrary_REPO_NAME }}", "GITHUB_MixedSignalTestLibrary_BRANCH_NAME": "${{ env.GITHUB_MixedSignalTestLibrary_BRANCH_NAME }}"}'
azure-pipeline-sourcebranch: "refs/heads/main"