48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
|
---
|
||
|
when:
|
||
|
- event: [pull_request]
|
||
|
- event: [push, manual]
|
||
|
branch:
|
||
|
- ${CI_REPO_DEFAULT_BRANCH}
|
||
|
|
||
|
steps:
|
||
|
- name: generate
|
||
|
image: quay.io/thegeeklab/ansible-doctor
|
||
|
environment:
|
||
|
ANSIBLE_DOCTOR_EXCLUDE_FILES: "['molecule/']"
|
||
|
ANSIBLE_DOCTOR_RENDERER__FORCE_OVERWRITE: "true"
|
||
|
ANSIBLE_DOCTOR_LOGGING__LEVEL: info
|
||
|
ANSIBLE_DOCTOR_ROLE__NAME: ${CI_REPO_NAME}
|
||
|
ANSIBLE_DOCTOR_TEMPLATE__NAME: readme
|
||
|
|
||
|
- name: format
|
||
|
image: quay.io/thegeeklab/alpine-tools
|
||
|
commands:
|
||
|
- prettier -w README.md
|
||
|
|
||
|
- name: diff
|
||
|
image: quay.io/thegeeklab/alpine-tools
|
||
|
commands:
|
||
|
- git diff --color=always README.md
|
||
|
|
||
|
- name: publish
|
||
|
image: quay.io/thegeeklab/wp-git-action
|
||
|
settings:
|
||
|
action:
|
||
|
- commit
|
||
|
- push
|
||
|
author_email: ci-bot@rknet.org
|
||
|
author_name: ci-bot
|
||
|
branch: main
|
||
|
message: "[skip ci] automated docs update"
|
||
|
netrc_machine: gitea.rknet.org
|
||
|
netrc_password:
|
||
|
from_secret: gitea_token
|
||
|
when:
|
||
|
- event: [push, manual]
|
||
|
branch:
|
||
|
- ${CI_REPO_DEFAULT_BRANCH}
|
||
|
|
||
|
depends_on:
|
||
|
- test
|