Skip to content

Commit

Permalink
Update release_lib.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorPopelyaev authored Aug 30, 2024
1 parent 78d4de1 commit 046c6dd
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/scripts/release/release_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ commit_with_message() {
git commit -a -m "$MESSAGE" || true
}

# Retun list of the runtimes filterd based on the repo (i.e. cumulus or polkadot)
# input: repo (cumulus, polkadot)
# Retun list of the runtimes filterd
# input: none
# output: list of filtered runtimes
get_filtered_runtimes_list_for_repo() {
repo=$1
get_filtered_runtimes_list() {
grep_filters=("runtime.*" "test|template|starters|substrate")

git grep spec_version: | grep .rs: | grep -e "${grep_filters[0]}" | grep "lib.rs" | grep -vE "${grep_filters[1]}" | cut -d: -f1
Expand All @@ -41,7 +40,7 @@ set_spec_versions() {
NEW_VERSION=$1
runtimes_list=(${@:2})

printf "Setting spec_version to $NEW_VERSION, please prepare your Yubikey and be ready to tap it"
printf "Setting spec_version to $NEW_VERSION\n"

for f in ${runtimes_list[@]}; do
printf " processing $f"
Expand Down

0 comments on commit 046c6dd

Please sign in to comment.