From 0a5e9aa8611ab13691bbeee44aa3567f50f32ffe Mon Sep 17 00:00:00 2001 From: ab Date: Sun, 13 Apr 2025 11:26:23 +0000 Subject: [PATCH] Update .gitea/workflows/lint.yaml --- .gitea/workflows/lint.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/lint.yaml b/.gitea/workflows/lint.yaml index 0015878..a5ae11d 100644 --- a/.gitea/workflows/lint.yaml +++ b/.gitea/workflows/lint.yaml @@ -49,6 +49,15 @@ jobs: continue-on-error: true - 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<> $GITHUB_ENV + echo "$INVALID_FILES" >> $GITHUB_ENV + echo "EOF" >> $GITHUB_ENV + + - name: Send Telegram message if: env.FAILED == 'true' uses: appleboy/telegram-action@master with: @@ -58,4 +67,4 @@ jobs: ❌ Kubernetes validation failed! Invalid files: - $(cat invalid_files.txt) \ No newline at end of file + ${{ env.INVALID_FILES }} \ No newline at end of file