diff options
author | Vladimir Shushlin <v.shushlin@gmail.com> | 2022-03-28 15:29:27 +0300 |
---|---|---|
committer | Vladimir Shushlin <v.shushlin@gmail.com> | 2022-03-28 15:29:27 +0300 |
commit | 2c7778c2b06d887875e6edaf26fd808121ae4bd4 (patch) | |
tree | 5701d5da2565bfdb27f91f123895d842b25df4d8 /.gitlab | |
parent | 65bf4a6024e01fae8b4c88d6e577e3ad145d87d7 (diff) |
chore: use security remote for security changelogs
Diffstat (limited to '.gitlab')
-rwxr-xr-x | .gitlab/scripts/changelog.sh | 4 |
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" |