ci: fix isRelease condition (#1066)

This commit is contained in:
Carl Lerche 2019-04-29 10:37:00 -07:00 committed by GitHub
parent 042224d33c
commit ea282efb2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ steps:
- bash: |
set -e
if git log --no-merges -1 --format='%s' | grep -q '[ci-release]'; then
if git log --no-merges -1 --format='%B' | grep -qF '[ci-release]'; then
echo "##vso[task.setvariable variable=isRelease]true"
fi
failOnStderr: true

View File

@ -28,7 +28,7 @@ jobs:
CI: 'True'
displayName: cargo test -p ${{ crate }}
workingDirectory: $(Build.SourcesDirectory)/${{ crate }}
condition: and(succeeded(), not(variables['isRelease']))
condition: and(succeeded(), ne(variables['isRelease'], 'true'))
- template: azure-patch-crates.yml