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

5
generate-readme: 
Arthur Lutz's avatar
Arthur Lutz committed
6
  image: fribbledom/markscribe
Arthur Lutz's avatar
Arthur Lutz committed
7
  stage: build
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
    - env
Arthur Lutz's avatar
Arthur Lutz committed
19
    - mv output/README.md .
Arthur Lutz's avatar
Arthur Lutz committed
20
    - hg add README.md
Arthur Lutz's avatar
Arthur Lutz committed
21
    - hg commit -m '🤖 generated README.md [skip ci]'
22
    - hg push $CI_REPOSITORY_URL