From b355f3a47ecf553dcf42c2ffd80f093c5ebf56d1 Mon Sep 17 00:00:00 2001 From: rndquu Date: Thu, 20 Jun 2024 01:07:19 +0300 Subject: [PATCH] ci: run knip reporter on failure --- .github/workflows/knip-reporter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/knip-reporter.yml b/.github/workflows/knip-reporter.yml index cf58ea8..282c9a8 100644 --- a/.github/workflows/knip-reporter.yml +++ b/.github/workflows/knip-reporter.yml @@ -9,6 +9,7 @@ on: jobs: knip-reporter: runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion != 'success' }} steps: - uses: actions/download-artifact@v4 with: @@ -24,7 +25,6 @@ jobs: trim: true - name: Report knip results to pull request - if: ${{ github.event.workflow_run.conclusion != 'success' }} uses: gitcoindev/knip-reporter@main with: verbose: true