43 lines
992 B
YAML
43 lines
992 B
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_FORCE_OVERWRITE: true
|
||
|
ANSIBLE_DOCTOR_LOG_LEVEL: INFO
|
||
|
ANSIBLE_DOCTOR_ROLE_NAME: ${DRONE_REPO_NAME}
|
||
|
ANSIBLE_DOCTOR_TEMPLATE: readme
|
||
|
|
||
|
- name: diff
|
||
|
image: quay.io/thegeeklab/alpine-tools
|
||
|
commands:
|
||
|
- git diff --color=always README.md
|
||
|
|
||
|
- name: publish
|
||
|
image: quay.io/thegeeklab/drone-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
|