We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 868f9f0 commit ed5d524Copy full SHA for ed5d524
.github/workflows/trigger-pr-build.yml
@@ -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