From c7ecdd0d544d33ecf822e5f5935f2b74f0dcbb90 Mon Sep 17 00:00:00 2001 From: Jordan Krage Date: Wed, 3 Apr 2024 17:32:16 -0500 Subject: [PATCH] .github/actions/golangci-lint: print report on failure (#12676) --- .github/actions/golangci-lint/action.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/actions/golangci-lint/action.yml b/.github/actions/golangci-lint/action.yml index cd553ca9683..3542c865959 100644 --- a/.github/actions/golangci-lint/action.yml +++ b/.github/actions/golangci-lint/action.yml @@ -58,6 +58,10 @@ runs: only-new-issues: false # disabled for PRs due to unreliability args: --out-format colored-line-number,checkstyle:golangci-lint-report.xml working-directory: ${{ inputs.go-directory }} + - name: Print lint report artifact + if: failure() + shell: bash + run: cat ${{ inputs.go-directory }}/golangci-lint-report.xml - name: Store lint report artifact if: always() uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1