Skip to content

try using GITHUB_REF_NAME variable for branch name #11

try using GITHUB_REF_NAME variable for branch name

try using GITHUB_REF_NAME variable for branch name #11

name: Trigger Update Galleries Pipeline
on:
push:
branches:
- release/extensions
- extensions/rc1
- kisantia/galleriesPipelineTest
jobs:
trigger-update-galleries:
runs-on: ubuntu-latest
steps:
- name: 'print GITHUB_REF_NAME'
run: echo "GITHUB_REF_NAME IS $GITHUB_REF_NAME"
# - uses: Azure/pipelines@v1.2
# with:
# azure-devops-project-url: 'https://dev.azure.com/msdata/SQLToolsAndLibraries'
# azure-pipeline-name: 'Update AzureDataStudio Extensions Gallery' # name of the Azure pipeline to be triggered
# azure-devops-token: '${{ secrets.ADO_UPDATE_GALLERIES_TOKEN }}'
# azure-pipeline-variables: '{"triggeringBranch": $GITHUB_REF_NAME}' # optional stringified json