File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 55 if : branch = master
66 - name : website
77 if : branch = master AND type != pull_request
8+ - name : restore-helm-repo-index
9+ if : branch = master AND type != pull_request
810 - name : sourcedocs
911 if : branch = master AND type != pull_request
1012
5557 - git config --global user.email "${GH_EMAIL}"
5658 - echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
5759 - 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
60+ - stage : restore-helm-repo-index
61+ language : minimal
62+ script :
63+ - git config --global user.name "${GH_NAME}"
64+ - git config --global user.email "${GH_EMAIL}"
65+ - echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
66+ - git fetch --unshallow
67+ - git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
68+ - git fetch origin
69+ - git checkout gh-pages
70+ - test -e index.yaml || git checkout $(git rev-list -n1 HEAD -- index.yaml)~1 -- index.yaml
71+ - git add index.yaml
72+ - git diff-index --quiet HEAD || git commit -m "Auto-restore Helm chart repo index after Docusaurus publish"
73+ - git push
5974 - stage : sourcedocs
6075 << : *elixir-env
6176 script :
You can’t perform that action at this time.
0 commit comments