Skip to content

Commit

Permalink
[install] in archiver.yml, revert last commit (remove tag date and ta…
Browse files Browse the repository at this point in the history
…g author to the release notes, it does not work if it is not an annotated tag)

Revert "[install] in archiver.yml, try to add tag date and tag author to the release notes - will revert, only works for annotated tags"
This reverts commit 1feb468
  • Loading branch information
valassi committed Oct 3, 2024
1 parent 1feb468 commit 75464e1
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/archiver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ jobs:
run: |
echo "Current directory is $(pwd)"
echo "WORKDIR is ${WORKDIR}"
cd branch_PR
echo "Current directory is now $(pwd)"
echo "Current branch is \"$(git branch | \grep ^* | sed 's/^* //')\""
githubref=$${{ github.ref }}
echo "(From github.ref) githubref = ${githubref}"
tagname=${githubref#/tags/}
Expand Down Expand Up @@ -121,9 +118,6 @@ 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
dateformat='%Y-%m-%d_%H:%M:%S UTC'
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 @@ -133,8 +127,6 @@ 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 "${tagdate}" >> ${WORKDIR}/versiontag.txt
echo "" >> ${WORKDIR}/versiontag.txt
echo "---" >> ${WORKDIR}/versiontag.txt
echo "" >> ${WORKDIR}/versiontag.txt
if [ "${tagname_makelatest}" != "true" ]; then
Expand Down Expand Up @@ -213,7 +205,6 @@ 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 [email protected]
Expand All @@ -226,8 +217,6 @@ 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 75464e1

Please sign in to comment.