Update wiki page (.wiki.git) from CI
Description
I have a project which create documentation (markdown) during the CI process. I want to be able to push the generate documentation directly from the CI. The goal is to have an up to date documentation when I accept a merge request on my master branch
It's the same issue as #21541. This issue is close but he didn't resolve the problem, he just get around.
Proposal
I want to be abble to write this in the .gitlab-ci.yml :
update-doc:
stage: update-doc
script:
- git clone https://gitlab-ci-token:${CI_BUILD_TOKEN}@domain.com/user/project.wiki.git
- cd project.wiki.git
- echo "test add text" > home.md
- git add home.md
- git commit -m "test update home.md"
- git push https://gitlab-ci-token:${CI_BUILD_TOKEN}@domain.com/user/project.wiki.git
Links / references
~"feature proposal" ~CI ~wiki