Update .gitea/workflows/lint.yaml
All checks were successful
Check with kubeconform / lint (push) Successful in 5s
All checks were successful
Check with kubeconform / lint (push) Successful in 5s
This commit is contained in:
@ -12,6 +12,7 @@ jobs:
|
|||||||
- uses: bmuschko/setup-kubeconform@v1
|
- uses: bmuschko/setup-kubeconform@v1
|
||||||
name: Setup Kubeconform
|
name: Setup Kubeconform
|
||||||
- name: Kubeconform
|
- name: Kubeconform
|
||||||
|
id: kubeconform
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
find . -name '*.yaml' \
|
find . -name '*.yaml' \
|
||||||
@ -20,12 +21,13 @@ jobs:
|
|||||||
-print0 \
|
-print0 \
|
||||||
| xargs -0 kubeconform \
|
| xargs -0 kubeconform \
|
||||||
-summary \
|
-summary \
|
||||||
-verbose \
|
-output text \
|
||||||
-output pretty \
|
|
||||||
-ignore-missing-schemas \
|
-ignore-missing-schemas \
|
||||||
-schema-location default \
|
-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/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
|
- name: Telegram notify on failure
|
||||||
if: failure()
|
if: failure()
|
||||||
uses: appleboy/telegram-action@master
|
uses: appleboy/telegram-action@master
|
||||||
@ -33,5 +35,10 @@ jobs:
|
|||||||
to: ${{ secrets.TELEGRAM_TO }}
|
to: ${{ secrets.TELEGRAM_TO }}
|
||||||
token: ${{ secrets.TELEGRAM_TOKEN }}
|
token: ${{ secrets.TELEGRAM_TOKEN }}
|
||||||
message: |
|
message: |
|
||||||
${{ github.actor }} created commit
|
❌ CI failed for ${{ github.repository }}
|
||||||
|
👤 By: ${{ github.actor }}
|
||||||
|
🧪 Commit: ${{ github.sha }}
|
||||||
|
🧾 Errors:
|
||||||
|
${{ steps.kubeconform.outputs.stdout }}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user