diff --git a/.github/workflows/archiver.yml b/.github/workflows/archiver.yml index df65cab72d..721bbfde0d 100644 --- a/.github/workflows/archiver.yml +++ b/.github/workflows/archiver.yml @@ -71,8 +71,8 @@ jobs: ###echo "OWNER is ${OWNER}" # owner is empty??? ###TAGPREFIX=cudacpp_for ###if [ "${OWNER}" != "madgraph5" ]; then TAGPREFIX="${OWNER}_${TAGPREFIX}"; fi # TEMPORARY! this will change eventually... - tagsuffix=${tagname#*cudacpp_for} - TAGPREFIX=${tagname/${tagsuffix}} # determine TAGPREFIX from triggering tag because github.repository_owner is empty(???) + tmpsuffix=${tagname#*cudacpp_for} + TAGPREFIX=${tagname/${tmpsuffix}} # determine TAGPREFIX from triggering tag because github.repository_owner is empty(???) echo "TAGPREFIX is ${TAGPREFIX}" # Check version tag cudacpp_version=$(cat ${WORKDIR}/VERSION.txt | awk '/^cudacpp_version/{print $3}') @@ -86,7 +86,7 @@ jobs: exit 1 # this will cause the job to fail without running the next steps fi tagname_suffix="${tagname/${tagname_version}}" - if [ `python3 -c "import re; print(re.match('(|_[0-9a-z]+)$','${tagsuffix}') is not None)"` == "False" ]; then + if [ `python3 -c "import re; print(re.match('(|_[0-9a-z]+)$','${tagname_suffix}') is not None)"` == "False" ]; then echo "ERROR! Invalid tagname '${tagname}' (valid format is '${tagname_version}[_txt]' where txt only contains letters or digits)" exit 1 # this will cause the job to fail without running the next steps fi