Skip to content

Commit 3b41d78

Browse files
committed
Do not use credentials in version_bump.sh
1 parent af0ece1 commit 3b41d78

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

scripts/version_bump.sh

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,5 @@ fi
3535

3636
echo "$COMMIT_MESSAGE"
3737

38-
git add "$VERSION_FILE"
39-
git commit -m "$COMMIT_MESSAGE"
40-
41-
if [ "$#" -eq 4 ]; then
42-
USERNAME=$3
43-
PASSWORD=$4
44-
REMOTE="https://${USERNAME}:${PASSWORD}@$(git remote get-url origin | cut -c 9-)"
45-
git push "$REMOTE" > /dev/null 2>&1
46-
fi
38+
git commit --only "$VERSION_FILE" -m "$COMMIT_MESSAGE"
39+
git push

0 commit comments

Comments
 (0)