Skip to content

Commit b40fadc

Browse files
committed
[chg] use CURRENT_BRANCH var in head-playbook.yml
1 parent 951602f commit b40fadc

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,10 @@ install:
4949
test-antora-build:
5050
stage: test
5151
script:
52-
- git show --summary
53-
- git show-ref --head
5452
- git checkout $CI_COMMIT_REF_NAME
5553
- git show --summary
5654
- git show-ref --head
57-
- - if [ "$CI_COMMIT_BRANCH" != "" ]; then
58-
- git checkout $CI_COMMIT_BRANCH
59-
- fi
60-
- git show --summary
61-
- git show-ref --head
55+
- sed -i "s#CURRENT_BRANCH#$CI_COMMIT_REF_NAME#g" head-playbook.yml
6256
- *npm_install
6357
- cd antora-ui
6458
- gulp bundle

head-playbook.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ runtime:
1313
content:
1414
sources:
1515
- url: https://gitlab.uib.gmbh/uib/opsidoc.git
16-
branches: [HEAD]
16+
branches: [CURRENT_BRANCH]
1717
edit_url: '{web_url}/-/edit/{refname}/{path}'
1818
start_path: docs/de
1919
- url: https://gitlab.uib.gmbh/uib/opsidoc.git
20-
branches: [HEAD]
20+
branches: [CURRENT_BRANCH]
2121
start_path: docs/en
2222
edit_url: '{web_url}/-/edit/{refname}/{path}'
2323
ui:

0 commit comments

Comments
 (0)