Skip to content

Commit

Permalink
fix: avoid fluka; add checksum to package
Browse files Browse the repository at this point in the history
  • Loading branch information
wdconinc authored Nov 1, 2023
1 parent 38284ad commit 8005533
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/scripts/checksum_new_versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,16 @@ package_list=$(spack tags eic)
#package_list=$(echo ${package_list} | tr ' ' '\n' | sort | uniq | tr '\n' ' ' | sed -e 's/[[:space:]]*$//')

for p in ${package_list}; do
if [[ $p == "fluka" ]] ; then
continue
fi

v=$(spack versions --new $p)
# ignore pre and rc versions (for all packages)
v=$(echo $v | sed 's/\S*\(rc\|pre\|alpha\|beta\)\S*//g')
# using `echo $v` instead of "$v" will handle v=" " correctly

if [[ ! -z `echo $v` ]]; then
echo "- [ ] \`$p\`: \`$v\` " >> gh-new-version.log
spack checksum --add-to-package --batch $p $v
fi
done

0 comments on commit 8005533

Please sign in to comment.