Skip to content

Commit 537cfbd

Browse files
build: switch from PR to push with exceptions
Signed-off-by: Philip Windecker <philip.windecker@avenyr.de>
1 parent e14781c commit 537cfbd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/antora-build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: Antora Documentation Build
33
on:
44
# create: # new branches or tags
55
# release: # new releases
6-
pull_request:
7-
branches: [ main, master ]
6+
push:
7+
branches-ignore: [ main, master ]
88
# 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
@@ -38,8 +38,8 @@ jobs:
3838
- name: Modify site.yml
3939
working-directory: generator
4040
run: |
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
41+
echo ${CI_COMMIT_BRANCH}
42+
sed -i -E "s/(branches\:) \[antora\/base-antora-setup\] \# osi-documentation/\1 [${CI_COMMIT_BRANCH}] \# 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)