Skip to content

Commit da57d70

Browse files
committed
clone repo in temp dir and then do the necessary steps in order to restore index.yaml
1 parent 64d4076 commit da57d70

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
@@ -55,7 +55,7 @@ jobs:
5555
- git config --global user.email "${GH_EMAIL}"
5656
- echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
5757
- cd website && yarn install && GIT_USER="${GH_NAME}" yarn run publish-gh-pages
58-
- git checkout gh-pages && git checkout $(git rev-list -n1 HEAD -- index.yaml)~1 -- index.yaml && git add index.yaml && git commit -m "Auto-restore Helm chart repo index after Docusaurus publish" && git push --verbose
58+
- tempdir=$(mktemp -d) && mkdir -p $tempdir && cd $tempdir && git clone --single-branch --branch gh-pages [email protected]:Accenture/reactive-interaction-gateway.git && cd reactive-interaction-gateway && git checkout $(git rev-list -n1 HEAD -- index.yaml)~1 -- index.yaml && git add index.yaml && git commit -m "Auto-restore Helm chart repo index after Docusaurus publish" && git push --verbose
5959
- stage: sourcedocs
6060
<<: *elixir-env
6161
script:

0 commit comments

Comments
 (0)