diff --git a/.gitea/workflows/lint.yaml b/.gitea/workflows/lint.yaml index 4e87698..cae37ce 100644 --- a/.gitea/workflows/lint.yaml +++ b/.gitea/workflows/lint.yaml @@ -12,6 +12,7 @@ jobs: - uses: bmuschko/setup-kubeconform@v1 name: Setup Kubeconform - name: Kubeconform + id: kubeconform continue-on-error: true run: | find . -name '*.yaml' \ @@ -20,12 +21,13 @@ jobs: -print0 \ | xargs -0 kubeconform \ -summary \ - -verbose \ - -output pretty \ + -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' \ - -schema-location 'https://raw.githubusercontent.com/SchemaStore/schemastore/refs/heads/master/src/schemas/json/kustomization.json' + | tee kubeconform_output.txt + - name: Telegram notify on failure if: failure() uses: appleboy/telegram-action@master @@ -33,5 +35,10 @@ jobs: to: ${{ secrets.TELEGRAM_TO }} token: ${{ secrets.TELEGRAM_TOKEN }} message: | - ${{ github.actor }} created commit + ❌ CI failed for ${{ github.repository }} + 👤 By: ${{ github.actor }} + 🧪 Commit: ${{ github.sha }} + 🧾 Errors: + ${{ steps.kubeconform.outputs.stdout }} +