Unverified Commit df4b36cf authored by s3krit's avatar s3krit Committed by GitHub
Browse files

[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
parent 848e1a89
Pipeline #94138 failed with stages
in 11 minutes and 22 seconds
......@@ -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" \
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment