Skip to content

Commit 25ea68f

Browse files
build: switch to github vars
Signed-off-by: Philip Windecker <philip.windecker@avenyr.de>
1 parent 557c605 commit 25ea68f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/antora-build.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@ jobs:
3838
- name: Modify site.yml
3939
working-directory: generator
4040
run: |
41-
echo "${CI_COMMIT_BRANCH}"
42-
echo "$CI_COMMIT_BRANCH"
43-
sed -i -E "s/(branches\:) \[antora\/base-antora-setup\] \# osi-documentation/\1 [${CI_COMMIT_BRANCH}] \# osi-documentation/" site.yml
41+
echo "${GITHUB_REF#refs/heads/}"
42+
sed -i -E "s/(branches\:) \[antora\/base-antora-setup\] \# osi-documentation/\1 [${GITHUB_REF#refs/heads/}] \# osi-documentation/" site.yml
4443
cat site.yml
4544
sed -i -E "s/cd repo/cd generator/" run-build.sh
4645
cat run-build.sh

0 commit comments

Comments
 (0)