1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00
metamask-extension/.circleci/scripts/validate-changelog-in-rc.sh

18 lines
388 B
Bash
Executable File

#!/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