.gitlab-ci.yml 544 Bytes
Newer Older
Arthur Lutz's avatar
Arthur Lutz committed
1
2
3
4
stages:
  - build
  - commit

Arthur Lutz's avatar
Arthur Lutz committed
5
generate-readme:
Arthur Lutz's avatar
Arthur Lutz committed
6
  image: fribbledom/markscribe
Arthur Lutz's avatar
Arthur Lutz committed
7
  stage: build
Arthur Lutz's avatar
Arthur Lutz committed
8
  script:
Arthur Lutz's avatar
Arthur Lutz committed
9
    - mkdir output
Arthur Lutz's avatar
Arthur Lutz committed
10
    - /go/bin/markscribe -write output/README.md README.md.tpl
Arthur Lutz's avatar
Arthur Lutz committed
11
  artifacts:
Arthur Lutz's avatar
Arthur Lutz committed
12
13
    paths:
      - output/
Arthur Lutz's avatar
Arthur Lutz committed
14
commit-readme:
15
  image: r.intra.logilab.fr/library/mercurial
Arthur Lutz's avatar
Arthur Lutz committed
16
  stage: commit
Arthur Lutz's avatar
Arthur Lutz committed
17
  script:
Arthur Lutz's avatar
Arthur Lutz committed
18
    - mv output/README.md .
Arthur Lutz's avatar
Arthur Lutz committed
19
    - hg add README.md
20
    - 'hg commit -m "build: 🤖 generated README.md [skip ci]"'
21
    - hg push https://$GITLAB_USER_LOGIN:$PERSONAL_ACCESS_TOKEN@$CI_SERVER_HOST/$CI_PROJECT_PATH