diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 32faacfbf5b..c4c3152c141 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -47,8 +47,6 @@ jobs: go-lint: name: Lint Go runs-on: ubuntu-22.04 - env: - LINT_RESULTS: "" steps: - name: Adding markdown run: echo '### Lint Go ✨' >> $GITHUB_STEP_SUMMARY @@ -80,6 +78,7 @@ jobs: run: | echo "- ✔️ Checked out the repository" >> $GITHUB_STEP_SUMMARY echo "- ✔️ Set up Go with version 1.20 and cached dependencies" >> $GITHUB_STEP_SUMMARY + if [ -n "$LINT_RESULTS" ]; then echo "- ❌ Go lint check failed" >> $GITHUB_STEP_SUMMARY echo "::error::Linting issues found. Check the details below." >> $GITHUB_STEP_SUMMARY @@ -87,7 +86,6 @@ jobs: exit 1 else echo "- ✔️ Go lint check passed" >> $GITHUB_STEP_SUMMARY - echo "::warning::No linting issues found." >> $GITHUB_STEP_SUMMARY fi continue-on-error: true if: always()