From 57c2ded955263498f422aadb5efa0cbc5de8af87 Mon Sep 17 00:00:00 2001 From: s3krit Date: Tue, 26 May 2020 15:46:23 +0200 Subject: [PATCH] [CI] Add Polkadot runtime version to release notes, change release title to Polkadot CC1 (#1136) * Include polkadot spec in release notes, retitle releases * add CC1 to release title --- polkadot/scripts/gitlab/publish_draft_release.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/polkadot/scripts/gitlab/publish_draft_release.sh b/polkadot/scripts/gitlab/publish_draft_release.sh index 42a38ab4cf..146a1c8710 100755 --- a/polkadot/scripts/gitlab/publish_draft_release.sh +++ b/polkadot/scripts/gitlab/publish_draft_release.sh @@ -30,11 +30,15 @@ esac # Start with referencing current native runtime # and find any referenced PRs since last release # Note: Drop any changes that begin with '[contracts]' or 'contracts:' +polkadot_spec=$(grep spec_version runtime/polkadot/src/lib.rs | tail -n 1 | grep -Eo '[0-9]+') +echo "[+] Polkadot spec version: $polkadot_spec" kusama_spec=$(grep spec_version runtime/kusama/src/lib.rs | tail -n 1 | grep -Eo '[0-9]+') echo "[+] Kusama spec version: $kusama_spec" westend_spec=$(grep spec_version runtime/westend/src/lib.rs | tail -n 1 | grep -Eo '[0-9]+') echo "[+] Westend spec version: $westend_spec" -release_text="Kusama native runtime: $kusama_spec +release_text="Polkadot native runtime: $polkadot_spec + +Kusama native runtime: $kusama_spec Westend native runtime: $westend_spec " @@ -145,7 +149,7 @@ echo "$release_text" echo "[+] Pushing release to github" # Create release on github -release_name="Kusama $version" +release_name="Polkadot CC1 $version" data=$(jq -Rs --arg version "$version" \ --arg release_name "$release_name" \ --arg release_text "$release_text" \