Use a file to configuring generate.yml

This commit is contained in:
Robert de Bock 2023-12-18 11:12:18 +01:00
parent e3bd44c57b
commit e6e8badd6d
2 changed files with 7 additions and 5 deletions

View File

@ -17,8 +17,7 @@ jobs:
- role: ansible-role-minimal
- role: ansible-role-version
- role: ansible-role-default
options:
- generate_gitignore: no
generate_config: generate_config.yml
steps:
- name: checkout
@ -26,8 +25,8 @@ jobs:
- run: |
pip install pre-commit
cd tests/${{ matrix.config.role }}
if [ ! -z "${{ matrix.config.options }}" ]; then
../../generate.yml
if [ ! -z "${{ generate_config }}" ]; then
../../generate.yml
else
../../generate.yml --extra-vars '{ ${{ matrix.config.options | join(,) }} }'
../../generate.yml --extra-vars @${{ generate_config }}
fi

View File

@ -0,0 +1,3 @@
---
generate_readme: no