Skip to content

Commit

Permalink
Skip plugin step if no plugins
Browse files Browse the repository at this point in the history
I thought it would just skip if the matrix was empty but it errors
instead.
  • Loading branch information
code-asher committed Mar 27, 2024
1 parent e3b9272 commit 2bf76cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
- "plugins/backstage-plugin-devcontainers-react/**"
plugin:
needs: changes
if: ${{ needs.changes.outputs.plugins != '' && toJson(fromJson(needs.changes.outputs.plugins)) != '[]' }}
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down

0 comments on commit 2bf76cb

Please sign in to comment.