Update argument_specs.yml (#260) #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- name: Set up Python | |
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5 | |
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 roles/ansible_icinga/ markdown | |
- name: Push README | |
if: github.event_name != 'pull_request' | |
uses: github-actions-x/commit@722d56b8968bf00ced78407bbe2ead81062d8baa # v2.9 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
commit-message: 'update readme' | |
files: README.md | |
rebase: true |