diff --git a/.github/scripts/generate_new_version_issue.sh b/.github/scripts/generate_new_version_issue.sh new file mode 100755 index 00000000..c35711d0 --- /dev/null +++ b/.github/scripts/generate_new_version_issue.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +package_list=$(spack maintainers --by-user vvolkl mirguest tmadlener) + +# todo: add packages by hep/key4hep label also? + +# prune duplicates (needed if package list is appended to) +#package_list=$(echo ${package_list} | tr ' ' '\n' | sort | uniq | tr '\n' ' ' | sed -e 's/[[:space:]]*$//') + +for p in ${package_list}; do + v=$(spack versions --new $p) + # ignore pre and rc versions + v=$(echo $v | sed 's/\S*\(rc\|pre\|alpha\)\S*//g') + if [[ ! -z "$v" ]]; then + echo $p: $v >> gh-new-version.log + fi +done + diff --git a/.github/scripts/post_new_version_issue.sh b/.github/scripts/post_new_version_issue.sh new file mode 100755 index 00000000..c69f3410 --- /dev/null +++ b/.github/scripts/post_new_version_issue.sh @@ -0,0 +1,14 @@ +generate_new_version_data() +{ + cat <