-
Notifications
You must be signed in to change notification settings - Fork 30
41 lines (36 loc) · 994 Bytes
/
roles-readme.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
name: create roles readme
on: # yamllint disable-line rule:truthy
push:
branches: [main]
paths:
- 'roles/*/meta/argument_specs.yml'
- 'roles/*/meta/main.yml'
pull_request:
branches: [main]
paths:
- 'roles/*/meta/argument_specs.yml'
- 'roles/*/meta/main.yml'
jobs:
readme:
name: create roles readme
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install aar_doc
run: pip3 install aar_doc
- name: Run aar_doc
run: aar_doc --config-file .aar_doc.yml . markdown
- name: Push README
if: github.event_name != 'pull_request'
uses: github-actions-x/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'update readme'
files: README.md
rebase: true