mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
Remove unused CI script (#10840)
This script has not been used since #10795. It is now gone.
This commit is contained in:
parent
1c5dcd6efc
commit
b18161c066
@ -1,43 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
set -u
|
||||
set -o pipefail
|
||||
|
||||
if [[ "${CI:-}" != 'true' ]]
|
||||
then
|
||||
printf '%s\n' 'CI environment variable must be set to true'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ "${CIRCLECI:-}" != 'true' ]]
|
||||
then
|
||||
printf '%s\n' 'CIRCLECI environment variable must be set to true'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
version="${CIRCLE_BRANCH/Version-v/}"
|
||||
|
||||
if ! grep --quiet --fixed-strings "$version" CHANGELOG.md
|
||||
then
|
||||
printf '%s\n' 'Adding this release to CHANGELOG.md'
|
||||
cp CHANGELOG.md{,.bak}
|
||||
|
||||
update_headers=$(cat <<END
|
||||
/## Current Develop Branch/ {
|
||||
print "## Current Develop Branch\n";
|
||||
print "## ${version}";
|
||||
next;
|
||||
}
|
||||
{
|
||||
print;
|
||||
}
|
||||
END
|
||||
)
|
||||
|
||||
awk "$update_headers" CHANGELOG.md.bak > CHANGELOG.md
|
||||
rm CHANGELOG.md.bak
|
||||
else
|
||||
printf '%s\n' "CHANGELOG.md already includes a header for ${version}"
|
||||
exit 0
|
||||
fi
|
Loading…
Reference in New Issue
Block a user