Skip to content

Commit

Permalink
wip3
Browse files Browse the repository at this point in the history
  • Loading branch information
valassi committed Oct 1, 2024
1 parent 57e627b commit 358d2d3
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/archiver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,20 @@ jobs:
run: |
echo "Current directory is $(pwd)"
echo "WORKDIR is ${WORKDIR}"
REPO=$${{ github.repository }}
echo "REPO is ${REPO}"
OWNER=${REPO%/*}
echo "OWNER is ${OWNER}"
TAGPREFIX=cudacpp_for
if [ "${OWNER}" != "madgraph5" ]; then TAGPREFIX="${OWNER}_${TAGPREFIX}"; fi # TEMPORARY! this will change eventually...
echo "TAGPREFIX is ${TAGPREFIX}"
githubref=$${{ github.ref }}
echo "(From github.ref) githubref = ${githubref}"
tagname=${githubref#/tags/}
echo "(From github.ref) tagname = ${tagname}"
echo "TAGNAME=${tagname}" >> $GITHUB_ENV
###REPO=$${{ github.repository }}
###echo "REPO is ${REPO}" # owner is empty???
###OWNER=${REPO%/*}
###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?!
echo "TAGPREFIX is ${TAGPREFIX}"
# Check version tag
cudacpp_version=$(cat ${WORKDIR}/VERSION.txt | awk '/^cudacpp_version/{print $3}')
mg5_version=$(cat ${WORKDIR}/VERSION.txt | awk '/^mg5_version_current/{print $3}')
Expand Down

0 comments on commit 358d2d3

Please sign in to comment.