Skip to content

Commit b071e2a

Browse files
committed
check if index.yaml already exists
1 parent c853079 commit b071e2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
- git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
6868
- git fetch origin
6969
- git checkout gh-pages
70-
- git checkout $(git rev-list -n1 HEAD -- index.yaml)~1 -- index.yaml > /dev/null 2>&1 | true
70+
- test -e index.yaml || git checkout $(git rev-list -n1 HEAD -- index.yaml)~1 -- index.yaml
7171
- git add index.yaml
7272
- git diff-index --quiet HEAD || git commit -m "Auto-restore Helm chart repo index after Docusaurus publish"
7373
- git push

0 commit comments

Comments
 (0)