ci: fix isRelease condition (#274)

This commit is contained in:
Carl Lerche 2019-04-27 09:32:40 -07:00 committed by GitHub
parent 73c74252e6
commit 8a646dd25c
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

@ -19,7 +19,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