Files
pezkuwi-subxt/substrate/.maintain/gitlab/check_signed.sh
T
Martin Pugh 07e4b9c997 [CI] Move check_labels to github actions (#8099)
* move lib.sh to common dir

* make check-labels a github action workflow
2021-02-11 13:34:43 +01:00

17 lines
479 B
Bash
Executable File

#!/usr/bin/env bash
# shellcheck source=../common/lib.sh
source "$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )/../common/lib.sh"
version="$CI_COMMIT_TAG"
echo '[+] Checking tag has been signed'
check_tag "paritytech/substrate" "$version"
case $? in
0) echo '[+] Tag found and has been signed'; exit 0
;;
1) echo '[!] Tag found but has not been signed. Aborting release.'; exit 1
;;
2) echo '[!] Tag not found. Aborting release.'; exit 1
esac