Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document ways of using markscribe with gitlab & heptapod #20

Open
arthurzenika opened this issue Nov 5, 2020 · 1 comment
Open

Document ways of using markscribe with gitlab & heptapod #20

arthurzenika opened this issue Nov 5, 2020 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@arthurzenika
Copy link

arthurzenika commented Nov 5, 2020

I've been happy to use markscribe with readme-scribe on github with github actions, but wanted to have it working too on gitlab or heptapod (friendly fork of gitlab with mercurial support).

Here is the .gitlab-ci.yml I'm using :

generate-readme:
  image: fribbledom/markscribe
  script:
    - mkdir output
    - /go/bin/markscribe -write output/README.md README.md.tpl
  artifacts:
    paths:
      - output/
commit-readme:
  image: logilab/mercurial
  script:
    - mv output/README.md .
    - hg add README.md
    - 'hg commit -m "build: 🤖 generated README.md [skip ci]"'
    - hg push https://$GITLAB_USER_LOGIN:$PERSONAL_ACCESS_TOKEN@$CI_SERVER_HOST/$CI_PROJECT_PATH

There's probably an easy way to do the autocommit with git for gitlab...

@muesli
Copy link
Owner

muesli commented Nov 5, 2020

Nice, I'm all for that! I'd also love to support the GitLab API in markscribe, but have not had the time or need to work on it myself so far.

@muesli muesli added the documentation Improvements or additions to documentation label Nov 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants