File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,10 +44,10 @@ jobs:
4444 ENVIRONMENT : ${{ matrix.environment }}
4545 PR_NUMBER : ${{ inputs.pr_number }}
4646 run : |
47+ PARAMS="commitSHA=$COMMIT_SHA environment=$ENVIRONMENT pool=${ADO_MANAGEMENT_POOL}"
48+
4749 if [[ -n "$PR_NUMBER" ]]; then
48- pr_argument="prNumber=$PR_NUMBER"
49- else
50- pr_argument="prNumber=$ENVIRONMENT"
50+ PARAMS="$PARAMS prNumber=$PR_NUMBER"
5151 fi
5252
5353 source infrastructure/environments/$ENVIRONMENT/variables.sh
5858 --name "Deploy to Azure - $ENVIRONMENT" \
5959 --org https://dev.azure.com/nhse-dtos \
6060 --project lung-cancer-screening \
61- --parameters commitSHA="$COMMIT_SHA" "$pr_argument" environment="$ENVIRONMENT" pool=${ADO_MANAGEMENT_POOL} \
61+ --parameters $PARAMS \
6262 --output tsv --query id)
6363
6464 echo "See pipeline run in Azure devops: https://dev.azure.com/nhse-dtos/lung-cancer-screening/_build/results?buildId=${RUN_ID}&view=results"
You can’t perform that action at this time.
0 commit comments