forked from ab/homelab
Update .gitea/workflows/lint.yaml
This commit is contained in:
@ -49,6 +49,15 @@ jobs:
|
|||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Telegram notify on failure
|
- name: Telegram notify on failure
|
||||||
|
if: env.FAILED == 'true'
|
||||||
|
run: |
|
||||||
|
# Read invalid files and format them for the message
|
||||||
|
INVALID_FILES=$(cat invalid_files.txt)
|
||||||
|
echo "INVALID_FILES<<EOF" >> $GITHUB_ENV
|
||||||
|
echo "$INVALID_FILES" >> $GITHUB_ENV
|
||||||
|
echo "EOF" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Send Telegram message
|
||||||
if: env.FAILED == 'true'
|
if: env.FAILED == 'true'
|
||||||
uses: appleboy/telegram-action@master
|
uses: appleboy/telegram-action@master
|
||||||
with:
|
with:
|
||||||
@ -58,4 +67,4 @@ jobs:
|
|||||||
❌ Kubernetes validation failed!
|
❌ Kubernetes validation failed!
|
||||||
|
|
||||||
Invalid files:
|
Invalid files:
|
||||||
$(cat invalid_files.txt)
|
${{ env.INVALID_FILES }}
|
Reference in New Issue
Block a user