8000 Skip plugin step if no plugins · coder/backstage-plugins@2bf76cb · GitHub
[go: up one dir, main page]

Skip to content

Commit 2bf76cb

Browse files
committed
Skip plugin step if no plugins
I thought it would just skip if the matrix was empty but it errors instead.
1 parent e3b9272 commit 2bf76cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
- "plugins/backstage-plugin-devcontainers-react/**"
4141
plugin:
4242
needs: changes
43+
if: ${{ needs.changes.outputs.plugins != '' && toJson(fromJson(needs.changes.outputs.plugins)) != '[]' }}
4344
runs-on: ubuntu-latest
4445
strategy:
4546
matrix:

0 commit comments

Comments
 (0)
0