Merge pull request #93 from PeyGis/fluxcd #22
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 template files from matrix | |
on: | |
push: | |
branches: main | |
paths: | |
- .github/scripts/create-templates.py | |
- kubernetes/template_list.json | |
- kubernetes/*.tmpl | |
- kubernetes/kubernetes_config.yaml | |
workflow_dispatch: | |
jobs: | |
create-matrix: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Clean up templates | |
run: | | |
rm -f kubernetes/templates/*.yaml | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- run: | | |
python .github/scripts/create-templates.py | |
ls -l kubernetes/templates | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
branch-suffix: timestamp | |