Update .gitea/workflows/lint.yaml
All checks were successful
Check with kubeconform / lint (push) Successful in 5s

This commit is contained in:
ab
2025-04-13 11:12:40 +00:00
parent 2b4141acf8
commit 0a5dee7506

View File

@ -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 }}