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

View File

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