1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/.circleci/scripts/validate-changelog-in-rc.sh

18 lines
388 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -e
set -u
set -o pipefail
current_commit_msg=$(git show -s --format='%s' HEAD)
if [[ $current_commit_msg =~ Version[[:space:]](v[[:digit:]]+.[[:digit:]]+.[[:digit:]]+[-]beta.[[:digit:]]) ]]
then
printf '%s\n' 'Skip changelog validation for beta commit'
else
printf '%s\n' 'Validate changelog for release candidate'
yarn lint:changelog:rc
fi
exit 0