Skip to content

Commit

Permalink
Update lint.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
anosh-ar authored Jun 7, 2024
1 parent c2433dc commit 574d563
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}

0 comments on commit 574d563

Please sign in to comment.