name: Check with kubeconform on: push: branches: [ main ] jobs: lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: bmuschko/setup-kubeconform@v1 name: Setup Kubeconform - name: Kubeconform id: kubeconform continue-on-error: true run: | find . -name '*.yaml' \ ! -name '*values.yaml' \ ! -path './.gitea/*' \ -print0 \ | xargs -0 kubeconform \ -summary \ -output text \ -ignore-missing-schemas \ -schema-location default \ -schema-location 'https://raw.githubusercontent.com/SchemaStore/schemastore/refs/heads/master/src/schemas/json/kustomization.json' \ -schema-location 'https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json' \ | tee kubeconform_output.txt - name: Telegram notify on failure if: failure() uses: appleboy/telegram-action@master with: to: ${{ secrets.TELEGRAM_TO }} token: ${{ secrets.TELEGRAM_TOKEN }} message: | ❌ CI failed for ${{ github.repository }} 👤 By: ${{ github.actor }} 🧪 Commit: ${{ github.sha }} 🧾 Errors: ${{ steps.kubeconform.outputs.stdout }}