Skip to content

Commit 5c86d1d

Browse files
build: new variable for refname
Signed-off-by: Philip Windecker <philip.windecker@avenyr.de>
1 parent 25ea68f commit 5c86d1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/antora-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ jobs:
3838
- name: Modify site.yml
3939
working-directory: generator
4040
run: |
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
41+
echo "$GITHUB_REF_NAME"
42+
sed -i -E "s/(branches\:) \[antora\/base-antora-setup\] \# osi-documentation/\1 [${GITHUB_REF_NAME}] \# osi-documentation/" site.yml
4343
cat site.yml
4444
sed -i -E "s/cd repo/cd generator/" run-build.sh
4545
cat run-build.sh

0 commit comments

Comments
 (0)