From 47cabf5ce42acbaa5d73c5008c4b5d6976317d41 Mon Sep 17 00:00:00 2001 From: Aaron-Ritter Date: Mon, 29 Jan 2024 16:52:32 +0100 Subject: [PATCH] ci(detekt): run reviewdog after success or failure --- .github/workflows/detekt.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/detekt.yml b/.github/workflows/detekt.yml index 2e46895..dd19781 100644 --- a/.github/workflows/detekt.yml +++ b/.github/workflows/detekt.yml @@ -50,6 +50,13 @@ jobs: java-version: '17' distribution: 'zulu' + # Sets up the reviewdog cli + - name: Setup reviewdog + uses: reviewdog/action-setup@v1 + + - name: Show reviewdog version + run: reviewdog -version + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - name: Checkout repository uses: actions/checkout@v4 @@ -71,13 +78,7 @@ jobs: with: sarif_file: build/reports/detekt/merge.sarif.json - # Sets up the reviewdog cli - - name: Setup reviewdog - uses: reviewdog/action-setup@v1 - - - name: Show reviewdog version - run: reviewdog -version - # Process Sarif Report file from Detekt with reviewdog cli - name: Run reviewdog + if: success() || failure() run: reviewdog -f=sarif -diff="git diff" -name="detekt" < build/reports/detekt/merge.sarif.json \ No newline at end of file