Skip to content

Commit 338e6fb

Browse files
authored
Merge pull request libgit2#6990 from libgit2/ethomson/ci
2 parents 76fe397 + e447de9 commit 338e6fb

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/documentation.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Generate Documentation
33

44
on:
55
push:
6-
branches: [ main, maint/* ]
6+
branches: [ main ]
77
release:
88
workflow_dispatch:
99
inputs:
@@ -37,12 +37,10 @@ jobs:
3737
ssh-key: ${{ secrets.DOCS_PUBLISH_KEY }}
3838
- name: Prepare branches
3939
run: |
40-
if [ "$(git rev-parse --abbrev-ref HEAD)" != "main" ]; then
41-
git branch --track main origin/main
42-
fi
43-
44-
for a in $(git branch -r --list 'origin/maint/*' | sed -e "s/^ origin\///"); do
45-
git branch --track "$a" "origin/$a"
40+
for a in main $(git branch -r --list 'origin/maint/*' | sed -e "s/^ origin\///"); do
41+
if [ "$(git rev-parse --abbrev-ref HEAD)" != "${a}" ]; then
42+
git branch --track "$a" "origin/$a"
43+
fi
4644
done
4745
working-directory: source
4846
- name: Generate documentation

0 commit comments

Comments
 (0)