Skip to content

Commit

Permalink
ci(github): don't fail pr-modification on empty matrix (#12452)
Browse files Browse the repository at this point in the history
## 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 <[email protected]>
  • Loading branch information
lahabana authored Jan 7, 2025
1 parent 0adc887 commit bd19fec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pr-modification.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bd19fec

Please sign in to comment.