Skip to content

Commit

Permalink
Lint doesn't exit when lint errors are detected
Browse files Browse the repository at this point in the history
  • Loading branch information
BreathXV committed Jun 5, 2024
1 parent 3f7c39e commit bc20da5
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 @@ -28,7 +28,7 @@ jobs:
- name: Run golangci-lint
id: lint
run: |
golangci-lint run --out-format json > golangci-lint-report.json
golangci-lint run --out-format json > golangci-lint-report.json || true
if [ -s golangci-lint-report.json ]; then
echo "Lint issues found"
echo "::set-output name=lint_failed::true"
Expand All @@ -42,6 +42,6 @@ jobs:
uses: peter-evans/create-issue-from-file@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: Linting Issue Found
title: Linting Issues Found
content-filepath: golangci-lint-report.json
labels: lint

0 comments on commit bc20da5

Please sign in to comment.