Skip to content

Commit e14781c

Browse files
build: update pipeline for pr
Signed-off-by: Philip Windecker <philip.windecker@avenyr.de>
1 parent 9d67fa9 commit e14781c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/antora-build.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: Antora Documentation Build
22

33
on:
44
# create: # new branches or tags
5-
release: # new releases
5+
# release: # new releases
66
pull_request:
7-
branches: [ main ]
8-
push: # on push. This may be removed later
7+
branches: [ main, master ]
8+
# push: # on push. This may be removed later
99
# schedule: # periodic - needed because some of the content is from the other repos
1010
# - cron: '30 5,20 * * *' # this is pretty often. Only needed during review phase
1111

@@ -38,7 +38,8 @@ jobs:
3838
- name: Modify site.yml
3939
working-directory: generator
4040
run: |
41-
sed -i -E "s/(branches\:) \[antora\/base-antora-setup\] \# osi-documentation/\1 [${{CI_COMMIT_BRANCH}}] \# osi-documentation/" site.yml
41+
echo ${CI_COMMIT_REF_NAME}
42+
sed -i -E "s/(branches\:) \[antora\/base-antora-setup\] \# osi-documentation/\1 [${CI_COMMIT_REF_NAME}] \# osi-documentation/" site.yml
4243
cat site.yml
4344
sed -i -E "s/cd repo/cd generator/" run-build.sh
4445
cat run-build.sh

0 commit comments

Comments
 (0)