Skip to content

Commit a601a0e

Browse files
Merge branch 'master' into feat/misc-improvements-1508
2 parents 6380d96 + 15f6fec commit a601a0e

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

.github/workflows/trigger-azure-devops-pipeline.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,25 @@ permissions:
3636

3737
jobs:
3838
trigger-azure-pipeline:
39-
if: ${{ secrets.AZURE_DEVOPS_TOKEN != '' && vars.AZURE_DEVOPS_PROJECT_URL != '' && vars.AZURE_DEVOPS_PIPELINE != '' }}
4039
runs-on: ubuntu-latest
4140
steps:
4241

42+
- name: Check required configuration
43+
run: |
44+
if [ -z "${{ secrets.AZURE_DEVOPS_TOKEN }}" ]; then
45+
echo "Error: AZURE_DEVOPS_TOKEN secret is not set"
46+
exit 1
47+
fi
48+
if [ -z "${{ vars.AZURE_DEVOPS_PROJECT_URL }}" ]; then
49+
echo "Error: AZURE_DEVOPS_PROJECT_URL variable is not set"
50+
exit 1
51+
fi
52+
if [ -z "${{ vars.AZURE_DEVOPS_PIPELINE }}" ]; then
53+
echo "Error: AZURE_DEVOPS_PIPELINE variable is not set"
54+
exit 1
55+
fi
56+
echo "All required configuration is present"
57+
4358
- name: Extract branch name
4459
shell: bash
4560
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_ENV

0 commit comments

Comments
 (0)