Skip to content

Commit

Permalink
add workflow to update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rndmh3ro committed Dec 6, 2023
1 parent 5abd59e commit a2d1a53
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/roles-readme.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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/commit@v2.9
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'update readme'
files: README.md
rebase: true

0 comments on commit a2d1a53

Please sign in to comment.