Skip to content

Commit

Permalink
wip5
Browse files Browse the repository at this point in the history
  • Loading branch information
valassi committed Oct 1, 2024
1 parent 471cb57 commit a270fb7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/archiver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}')
Expand All @@ -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
Expand Down

0 comments on commit a270fb7

Please sign in to comment.