Skip to content

Commit

Permalink
try using GITHUB_REF_NAME variable for branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
kisantia committed Mar 26, 2024
1 parent 49fd2c9 commit 833075b
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/trigger-update-galleries-pipeline.yml
Expand Up @@ -11,9 +11,12 @@ jobs:
trigger-update-galleries:
runs-on: ubuntu-latest
steps:
- 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": "kisantia/galleriesPipelineTest"}' # optional stringified json
- 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

0 comments on commit 833075b

Please sign in to comment.