Skip to content

Commit ed5d524

Browse files
committed
adding trigger
1 parent 868f9f0 commit ed5d524

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Trigger Pull Request Build
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
7+
jobs:
8+
trigger-pull-request-build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: 'Print triggering branch name'
12+
run: echo "GITHUB_REF_NAME IS $GITHUB_REF_NAME"
13+
14+
- uses: Azure/[email protected]
15+
with:
16+
azure-devops-project-url: 'https://dev.azure.com/msdata/SQLToolsAndLibraries'
17+
azure-pipeline-name: 'VSCode MSSQL - Buddy' # name of the Azure pipeline to be triggered
18+
azure-devops-token: '${{ secrets.VSCODE_MSSQL_PR_TRIGGER_TOKEN }}'
19+
azure-pipeline-variables: '{"githubBranch": "${{ github.ref_name }}"}' # pass branch name to pipeline

0 commit comments

Comments
 (0)