Skip to content

Commit 951b8c4

Browse files
committed
do not let command fail
1 parent 9aa0056 commit 951b8c4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,11 @@ 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
70+
- git checkout $(git rev-list -n1 HEAD -- index.yaml)~1 -- index.yaml > /dev/null 2>&1 | true
7171
- git add index.yaml
72-
- git commit -m "Auto-restore Helm chart repo index after Docusaurus publish"
73-
- git push
72+
- git diff-index --quiet HEAD || git commit -m "Auto-restore Helm chart repo index after Docusaurus publish"
73+
- git diff-index --quiet HEAD || git remote add origin-pages https://${GH_TOKEN}@github.com/Accenture/reactive-interaction-gateway.git > /dev/null 2>&1
74+
- git diff-index --quiet HEAD || git push --set-upstream origin-pages gh-pages
7475
- stage: sourcedocs
7576
<<: *elixir-env
7677
script:

0 commit comments

Comments
 (0)