mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 19:17:58 +00:00
25e2448597
* CI: Split common functions into lib.sh and make... ... alert_pending_release.sh check the substrate changes for various labels. If labelled, will be included in the changelog, otherwise will silently be left out. * replace non-standard /bin/bash with /usr/bin/env bash * CI: make lib.sh /bin/sh-compatible
52 lines
1.6 KiB
Bash
Executable File
52 lines
1.6 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
#shellcheck source=lib.sh
|
|
source "$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )/lib.sh"
|
|
|
|
# Receive keys
|
|
# trusted_keys=(
|
|
# 27E36F4D3DB8D09946B14802EC077FBE1556877C # gavin@parity.io
|
|
# )
|
|
#
|
|
# for key in "${trusted_keys[@]}"; do
|
|
# gpg --keyserver hkps://keys.openpgp.org --recv-keys $key
|
|
# done
|
|
#
|
|
# # If the tag's not signed by any of the above keys, exit failing
|
|
# if ! git tag -v $CI_COMMIT_TAG; then
|
|
# echo "[!] FATAL: TAG NOT VERIFIED WITH A GPG SIGNATURE, QUITTING"
|
|
# exit 1
|
|
# fi
|
|
|
|
echo "[+] Tag present and verified. Alerting #polkadot and release-manager"
|
|
|
|
# Format and send message to #polkadot channel
|
|
msg_body=$(cat <<EOF
|
|
**New version of polkadot tagged:** $CI_COMMIT_TAG.
|
|
Build pipeline: $CI_PIPELINE_URL
|
|
A release will be created on completion of this pipeline.
|
|
EOF
|
|
)
|
|
|
|
# Created formatted body for clients that support it (???)
|
|
formatted_msg_body=$(cat <<EOF
|
|
<strong>New version of polkadot tagged:</strong> $CI_COMMIT_TAG.<br />
|
|
Build pipeline: $CI_PIPELINE_URL<br />
|
|
A release will be drafted upon completion of this pipeline.
|
|
EOF
|
|
)
|
|
|
|
echo "[+] Sending message to Polkadot room"
|
|
send_message "$(structure_message "$msg_body" "$formatted_msg_body")" "$MATRIX_ROOM_ID" "$MATRIX_ACCESS_TOKEN"
|
|
|
|
# Format and send message to release manager
|
|
msg_body=$(cat <<EOF
|
|
**New version of polkadot tagged:** $CI_COMMIT_TAG.
|
|
Build pipeline: $CI_PIPELINE_URL
|
|
When the build finishes, it is safe to build cleanroom binaries.
|
|
EOF
|
|
)
|
|
|
|
echo "[+] Sending message to release manager"
|
|
send_message "$(structure_message "$msg_body")" "$REL_MAN_ROOM_ID" "$MATRIX_ACCESS_TOKEN"
|