Skip to content

Commit

Permalink
[install] in archiver.yml, add tag date and tag author to the release…
Browse files Browse the repository at this point in the history
… notes
  • Loading branch information
valassi committed Oct 3, 2024
1 parent 99621e9 commit 9f0d4b8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/archiver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ jobs:
echo "INFO: tagname ${tagname} is a pre-release tag: will NOT update running tag ${tagname_latest}"
fi
echo "TAGNAME_MAKELATEST=${tagname_makelatest}" >> $GITHUB_ENV
tagdate=$(TZ=UTC git for-each-ref --format "Tag '${tagname}' created on %(taggerdate:format-local:${dateformat}) by %(taggername)" refs/tags/${tagname})
echo "TAGDATE=${tagdate}" >> $GITHUB_ENV
# Update VERSION.txt
echo "" >> ${WORKDIR}/VERSION.txt
echo "VERSION TAG: ${tagname}" >> ${WORKDIR}/VERSION.txt
Expand All @@ -127,7 +129,8 @@ jobs:
echo "" >> ${WORKDIR}/versiontag.txt
echo "Validated for mg5amcnlo version ${mg5_version} (commit [${mg5_commit}](https://github.com/mg5amcnlo/mg5amcnlo/commit/${mg5_commit}))" >> ${WORKDIR}/versiontag.txt
echo "" >> ${WORKDIR}/versiontag.txt
echo "---" >> ${WORKDIR}/versiontag.txt
echo "${tagdate}" >> ${WORKDIR}/versiontag.txt
echo "" >> ${WORKDIR}/versiontag.txt
if [ "${tagname_makelatest}" != "true" ]; then
echo "" >> ${WORKDIR}/versiontag.txt
echo "This is a test or pre-release tag: to use it, install it directly as follows" >> ${WORKDIR}/versiontag.txt
Expand Down Expand Up @@ -204,6 +207,7 @@ jobs:
mg5_commit=$(cat ${WORKDIR}/VERSION.txt | awk '/^mg5_commit_current/{print $3}')
echo "(From VERSION.txt) mg5_version_current = ${mg5_version}"
echo "(From VERSION.txt) mg5_commit_current = ${mg5_commit}"
tagdate=${TAGDATE}
# Create running tag
git config user.name github-actions
git config user.email github-actions@github.com
Expand All @@ -216,6 +220,8 @@ jobs:
echo "" >> ${WORKDIR}/runningtag.txt
echo "Validated for mg5amcnlo version ${mg5_version} (commit [${mg5_commit}](https://github.com/mg5amcnlo/mg5amcnlo/commit/${mg5_commit}))" >> ${WORKDIR}/runningtag.txt
echo "" >> ${WORKDIR}/runningtag.txt
echo "${tagdate}" >> ${WORKDIR}/runningtag.txt
echo "" >> ${WORKDIR}/runningtag.txt
echo "---" >> ${WORKDIR}/runningtag.txt
echo "" >> ${WORKDIR}/runningtag.txt
cat ${WORKDIR}/VERSION.txt | egrep '^(commit|TARBALL) ' >> ${WORKDIR}/runningtag.txt
Expand Down

0 comments on commit 9f0d4b8

Please sign in to comment.