2020-10-11 20:08:22 +02:00
|
|
|
image: pandoc:2.10
|
|
|
|
|
2020-10-11 20:04:51 +02:00
|
|
|
stages:
|
2020-10-11 20:08:22 +02:00
|
|
|
- install
|
2020-10-11 20:04:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
variables:
|
|
|
|
# Allow git interactions
|
|
|
|
GIT_AUTHOR_NAME: $GITLAB_USER_NAME
|
|
|
|
GIT_AUTHOR_EMAIL: $GITLAB_USER_EMAIL
|
|
|
|
GIT_COMMITTER_NAME: $GITLAB_USER_NAME
|
|
|
|
GIT_COMMITTER_EMAIL: $GITLAB_USER_EMAIL
|
|
|
|
|
|
|
|
install:
|
|
|
|
cache: {}
|
|
|
|
stage: install
|
|
|
|
script:
|
|
|
|
# Leave detached git HEAD
|
|
|
|
- git checkout -B "$CI_COMMIT_REF_NAME" "$CI_COMMIT_SHA"
|
2020-10-11 20:32:45 +02:00
|
|
|
# compile every markdown in this folder to pdf
|
|
|
|
- cd activiteiten/2020-2021/
|
|
|
|
- sh ../../scripts/md_to_pdf.sh
|
2020-10-11 20:04:51 +02:00
|
|
|
- git add -A
|
|
|
|
# Commit (note the [skip ci] to avoid loop)
|
|
|
|
- 'git commit -m "chore: render activities [skip ci]"'
|
|
|
|
|
|
|
|
# Push back to repository
|
|
|
|
- git push --follow-tags --no-verify "https://gitlab-ci-token:$GITLAB_TOKEN@$CI_SERVER_HOST/$CI_PROJECT_PATH.git" "HEAD:$CI_COMMIT_REF_NAME"
|