mirror of
https://github.com/elgohr/Publish-Docker-Github-Action.git
synced 2026-03-12 18:07:12 -04:00
🐛 Remove reference to non-capturing group
Non-capturing groups don't exist in PCRE syntax, that is used by normal sed (non-busybox) on the default GitHub actions runner. Fixes https://github.com/elgohr/Publish-Docker-Github-Action/issues/155
This commit is contained in:
@@ -101,7 +101,7 @@ translateDockerTag() {
|
||||
if isPreRelease "${GITHUB_REF}"; then
|
||||
TAGS=$(echo "${GITHUB_REF}" | sed -e "s/refs\/tags\///g" | sed -E "s/v?([0-9]+)\.([0-9]+)\.([0-9]+)(-[a-zA-Z]+(\.[0-9]+)?)?/\1.\2.\3\4/g")
|
||||
else
|
||||
TAGS=$(echo "${GITHUB_REF}" | sed -e "s/refs\/tags\///g" | sed -E "s/v?([0-9]+)\.([0-9]+)\.([0-9]+)/\1.\2.\3\4 \1.\2\4 \1\4/g")
|
||||
TAGS=$(echo "${GITHUB_REF}" | sed -e "s/refs\/tags\///g" | sed -E "s/v?([0-9]+)\.([0-9]+)\.([0-9]+)/\1.\2.\3 \1.\2 \1/g")
|
||||
fi
|
||||
elif isGitTag && usesBoolean "${INPUT_TAG_NAMES}"; then
|
||||
TAGS=$(echo "${GITHUB_REF}" | sed -e "s/refs\/tags\///g")
|
||||
|
||||
Reference in New Issue
Block a user