From bd19fecbca6d9aafeb94bb023dadffe5244814c2 Mon Sep 17 00:00:00 2001 From: Charly Molter Date: Tue, 7 Jan 2025 15:40:13 +0100 Subject: [PATCH] ci(github): don't fail pr-modification on empty matrix (#12452) ## Motivation The action would fail if there were no recently updated PR. We skip the job if we didn't find any PRs. ## Supporting documentation A failing action: https://github.com/kumahq/kuma/actions/runs/12648833795 Signed-off-by: Charly Molter --- .github/workflows/pr-modification.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pr-modification.yaml b/.github/workflows/pr-modification.yaml index 67a7c98703f4..da09ed0f02c9 100644 --- a/.github/workflows/pr-modification.yaml +++ b/.github/workflows/pr-modification.yaml @@ -47,6 +47,7 @@ jobs: pr-comment: needs: find-prs runs-on: ubuntu-24.04 + if: needs.find-prs.outputs.recent_prs != '[]' strategy: matrix: ${{ fromJson(needs.find-prs.outputs.recent_prs) }} max-parallel: 1 # to avoid using too many runners