Handle "/" in branch names (#3260)

This commit is contained in:
Micaiah Martin 2022-08-08 17:10:18 +00:00 committed by GitHub
parent 07c7357825
commit 1a49117d8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -342,7 +342,7 @@ jobs:
id: image-tag
run: |
if [[ $(grep "pull" <<< "${GITHUB_REF}") ]]; then
IMAGE_TAG=${GITHUB_HEAD_REF}
IMAGE_TAG=$(echo "${GITHUB_HEAD_REF}" | sed "s#/#-#g")
else
IMAGE_TAG=$(echo "${GITHUB_REF:11}" | sed "s#/#-#g")
fi