mirror of
https://github.com/terraform-docs/terraform-docs.git
synced 2026-03-27 12:58:35 +07:00
ci: fix release scripts
Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
This commit is contained in:
7
.github/scripts/contributors.sh
vendored
7
.github/scripts/contributors.sh
vendored
@@ -11,13 +11,6 @@
|
||||
set -o errexit
|
||||
set -o pipefail
|
||||
|
||||
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
||||
|
||||
if [ -z "${CURRENT_BRANCH}" ] || [ "${CURRENT_BRANCH}" != "master" ]; then
|
||||
echo "Error: The current branch is '${CURRENT_BRANCH}', switch to 'master' to do the release."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -n "$(git status --short)" ]; then
|
||||
echo "Error: There are untracked/modified changes, commit or discard them before the release."
|
||||
exit 1
|
||||
|
||||
7
.github/scripts/release.sh
vendored
7
.github/scripts/release.sh
vendored
@@ -11,13 +11,6 @@
|
||||
set -o errexit
|
||||
set -o pipefail
|
||||
|
||||
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
||||
|
||||
if [ -z "${CURRENT_BRANCH}" ] || [ "${CURRENT_BRANCH}" != "master" ]; then
|
||||
echo "Error: The current branch is '${CURRENT_BRANCH}', switch to 'master' to do the release."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -n "$(git status --short)" ]; then
|
||||
echo "Error: There are untracked/modified changes, commit or discard them before the release."
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user