Generate #187
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: Generate | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
generate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: aquaproj/[email protected] | |
with: | |
aqua_version: v2.25.1 | |
- name: Generate | |
run: | | |
clusterctl generate provider --core cluster-api > ./manifests/infra-cluster/cluster-api/core/generated.yaml | |
clusterctl generate provider --bootstrap k0sproject-k0smotron > ./manifests/infra-cluster/cluster-api/k0s/bootstrap/generated.yaml | |
clusterctl generate provider --control-plane k0sproject-k0smotron > ./manifests/infra-cluster/cluster-api/k0s/control-plane/generated.yaml | |
clusterctl generate provider --infrastructure k0sproject-k0smotron > ./manifests/infra-cluster/cluster-api/k0s/infrastructure/generated.yaml | |
if [ -n "$(git status --porcelain)" ]; then | |
git config --global user.email "" | |
git config --global user.name "GitHub Actions" | |
git add . | |
git commit -m "Update generated manifests" | |
git push | |
fi |