Remove invalid config (#104)
This commit is contained in:
Родитель
ab86d66330
Коммит
914c929153
|
@ -336,11 +336,11 @@ jobs:
|
|||
|
||||
# Get PR ID and check status
|
||||
PRid=$(echo $PROut | jq -r '.pullRequestId');
|
||||
PRStatus=$(az repos pr show --id $PRid --organization "https://dev.azure.com/advaniase" | jq .status);
|
||||
PRStatus=$(az repos pr show --id $PRid | jq .status);
|
||||
|
||||
# If PR is not completed, then complete it bypassing policy
|
||||
if [ $PRStatus == "\"active\"" ]; then
|
||||
az repos pr update --status completed --id $PRid --bypass-policy true --bypass-policy-reason "Automated pull request" --organization "https://dev.azure.com/advaniase" > /dev/null 2>&1
|
||||
az repos pr update --status completed --id $PRid --bypass-policy true --bypass-policy-reason "Automated pull request" > /dev/null 2>&1
|
||||
fi;
|
||||
env:
|
||||
AZURE_DEVOPS_EXT_PAT: $(System.AccessToken)
|
||||
|
|
Загрузка…
Ссылка в новой задаче