Adding new, shared PR pipeline #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Trigger Pull Request Build | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
trigger-pull-request-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Print triggering branch name' | |
run: echo "GITHUB_REF_NAME IS $GITHUB_REF_NAME" | |
- uses: Azure/[email protected] | |
with: | |
azure-devops-project-url: 'https://dev.azure.com/msdata/SQLToolsAndLibraries' | |
azure-pipeline-name: 'VSCode MSSQL - Buddy' # name of the Azure pipeline to be triggered | |
azure-devops-token: '${{ secrets.VSCODE_MSSQL_PR_TRIGGER_TOKEN }}' | |
azure-pipeline-variables: '{"githubBranch": "${{ github.ref_name }}"}' # pass branch name to pipeline |