#!/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 <New version of polkadot tagged: $CI_COMMIT_TAG.
Build pipeline: $CI_PIPELINE_URL
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 <