9292 # Check version tag
9393 cudacpp_version=$(cat ${WORKDIR}/VERSION.txt | awk '/^cudacpp_version/{print $3}')
9494 mg5_version=$(cat ${WORKDIR}/VERSION.txt | awk '/^mg5_version_current/{print $3}')
95+ echo "MG5_VERSION=${mg5_version}" >> $GITHUB_ENV
9596 mg5_commit=$(cat ${WORKDIR}/VERSION.txt | awk '/^mg5_commit_current/{print $3}')
9697 echo "(From VERSION.txt) cudacpp_version = ${cudacpp_version}"
9798 echo "(From VERSION.txt) mg5_version_current = ${mg5_version}"
@@ -255,21 +256,6 @@ jobs:
255256 env :
256257 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
257258
258- - name : create_infodat
259- if : ${{ env.TAGNAME_MAKELATEST == 'true' }}
260- run : |
261- echo "Current directory is $(pwd)"
262- echo "WORKDIR is ${WORKDIR}"
263- cd branch_PR
264- echo "Current directory is now $(pwd)"
265- echo "Current branch is \"$(git branch | \grep ^* | sed 's/^* //')\""
266- echo "(From GITHUB_ENV) REPOSITORY = ${REPOSITORY}"
267- python3 .github/workflows/archiver.py ${REPOSITORY} version_info.dat
268- mv version_info.dat ${WORKDIR}
269- echo "Created version_info.dat"
270- python3 -c 'print("-"*132)'
271- cat ${WORKDIR}/version_info.dat
272-
273259 - name : checkout_INFO
274260 if : ${{ env.TAGNAME_MAKELATEST == 'true' }}
275261 uses : actions/checkout@v4
@@ -285,7 +271,11 @@ jobs:
285271 cd branch_INFO
286272 echo "Current directory is now $(pwd)"
287273 echo "Current branch is \"$(git branch | \grep ^* | sed 's/^* //')\""
288- mv ${WORKDIR}/version_info.dat .
274+ echo "${{ env.MG5_VERSION }} https://github.com/madgraph5/madgraph4gpu/releases/download/${{ env.TAGNAME }}/cudacpp.tar.gz" >> version_info.dat
275+ echo "Updated version_info.dat"
276+ python3 -c 'print("-"*132)'
277+ tail -n1 version_info.dat
278+ python3 -c 'print("-"*132)'
289279 git config user.name github-actions
290280 git config user.email [email protected] 291281 if [ -z "$(git status --porcelain version_info.dat)" ]; then
0 commit comments