Skip to content

Commit 49fde02

Browse files
committed
ci: fix release scripts
Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
1 parent d64cd3b commit 49fde02

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

.github/scripts/contributors.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@
1111
set -o errexit
1212
set -o pipefail
1313

14-
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
15-
16-
if [ -z "${CURRENT_BRANCH}" ] || [ "${CURRENT_BRANCH}" != "master" ]; then
17-
echo "Error: The current branch is '${CURRENT_BRANCH}', switch to 'master' to do the release."
18-
exit 1
19-
fi
20-
2114
if [ -n "$(git status --short)" ]; then
2215
echo "Error: There are untracked/modified changes, commit or discard them before the release."
2316
exit 1

.github/scripts/release.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@
1111
set -o errexit
1212
set -o pipefail
1313

14-
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
15-
16-
if [ -z "${CURRENT_BRANCH}" ] || [ "${CURRENT_BRANCH}" != "master" ]; then
17-
echo "Error: The current branch is '${CURRENT_BRANCH}', switch to 'master' to do the release."
18-
exit 1
19-
fi
20-
2114
if [ -n "$(git status --short)" ]; then
2215
echo "Error: There are untracked/modified changes, commit or discard them before the release."
2316
exit 1

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy