ci: fix warning when setting branchName in PR

This commit is contained in:
Jens Langhammer
2021-02-04 23:15:35 +01:00
parent e639d8ab56
commit 51cbb7cc8e
3 changed files with 7 additions and 7 deletions

View File

@ -74,8 +74,8 @@ stages:
targetType: 'inline'
script: |
set -x
branchName=$(echo "$(System.PullRequest.SourceBranch)" | sed "s/\//-/g")'
echo '##vso[task.setvariable variable=branchName]$branchName
branchName=$(echo "$(System.PullRequest.SourceBranch)" | sed "s/\//-/g")
echo "##vso[task.setvariable variable=branchName]$branchName"
- task: Docker@2
inputs:
containerRegistry: 'dockerhub'