File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,10 +36,25 @@ permissions:
3636
3737jobs :
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
You can’t perform that action at this time.
0 commit comments