diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a3d702a8..61baa13b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -41,7 +41,7 @@ jobs: id: pylint_check run: | - if grep -E "^E[0-9]+" pylint_report.txt; then + if grep -E "E[0-9]+" pylint_report.txt; then echo "Critical pylint errors found in the code. Please check pylint_report.txt for details." echo $steps.pylint_check.outcome exit 1 @@ -50,5 +50,5 @@ jobs: - name: Send Slack notification on failure if: steps.pylint_check.outcome == 'failure' run: | - ERROR_MSG=$(grep -E "^E[0-9]+" pylint_report.txt) + ERROR_MSG=$(grep -E "E[0-9]+" pylint_report.txt) curl -X POST -H 'Content-type: application/json' --data "{\"text\":\"Critical linting errors found in the code. Please check the logs for details:\n\`\`\`$ERROR_MSG\`\`\`\"}" ${{ secrets.SLACK_WEBHOOK_URL }}