Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Shushlin <v.shushlin@gmail.com>2022-03-28 15:29:27 +0300
committerVladimir Shushlin <v.shushlin@gmail.com>2022-03-28 15:29:27 +0300
commit2c7778c2b06d887875e6edaf26fd808121ae4bd4 (patch)
tree5701d5da2565bfdb27f91f123895d842b25df4d8 /.gitlab
parent65bf4a6024e01fae8b4c88d6e577e3ad145d87d7 (diff)
chore: use security remote for security changelogs
Diffstat (limited to '.gitlab')
-rwxr-xr-x.gitlab/scripts/changelog.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/.gitlab/scripts/changelog.sh b/.gitlab/scripts/changelog.sh
index 290f9aa4..f4c5f31f 100755
--- a/.gitlab/scripts/changelog.sh
+++ b/.gitlab/scripts/changelog.sh
@@ -8,8 +8,10 @@ SECURITY_PROJECT_ID='15685887' # gitlab-org/security/gitlab-pages
if [[ "${SECURITY:-'0'}" == '1' ]]
then
PROJECT_ID="$SECURITY_PROJECT_ID"
+ REMOTE="security"
else
PROJECT_ID="$PUBLIC_PROJECT_ID"
+ REMOTE="origin"
fi
MESSAGE="docs: add changelog for version $VERSION"
@@ -28,7 +30,7 @@ echo 'Updating changelog on the remote branch...'
if generate_changelog
then
echo 'Updating local branch...'
- git pull origin "$BRANCH"
+ git pull "$REMOTE" "$BRANCH"
echo 'The changelog has been updated'
else
echo "Failed to generate the changelog for version $VERSION on branch $BRANCH"