We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65624d6 commit 1b13436Copy full SHA for 1b13436
.azure-pipelines/publish.yml
@@ -6,11 +6,13 @@ pool:
6
7
steps:
8
- bash: |
9
- echo "Can only publish from a release branch. Unexpected branch name: $CURRENT_BRANCH"
10
- exit 1
+ if [[ ! "$CURRENT_BRANCH" =~ ^release-.* ]]; then
+ echo "Can only publish from a release branch."
11
+ echo "Unexpected branch name: $CURRENT_BRANCH"
12
+ exit 1
13
+ fi
14
env:
15
CURRENT_BRANCH: ${{ variables['Build.SourceBranchName'] }}
- condition: ${{ not(startsWith(variables['Build.SourceBranchName'], 'release-')) }}
16
displayName: "Check the branch is a release branch"
17
18
0 commit comments