Skip to content

Commit d95597d

Browse files
committed
Update matrix jobs to properly not execute when they don't have to
1 parent abce599 commit d95597d

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/actions/src/info/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ description: Gets which packages are currently present in the repository
33

44
outputs:
55
libs:
6-
description: The list of library packages present
6+
description: The list of library packages that have changes
77
bundles:
8-
description: The list of bundles packages present
8+
description: The list of bundles packages that have changes
99
tabs:
10-
description: The list of tabs packages present
10+
description: The list of tabs packages that have changes
1111
devserver:
1212
description: Information for the devserver
1313
docserver:

.github/workflows/pull-request.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ jobs:
4848
workflows: ${{ steps.info.outputs.workflows }}
4949

5050
libraries:
51+
if: ${{ needs.find-packages.outputs.libs != '[]' }}
52+
5153
needs: find-packages
5254
strategy:
5355
fail-fast: false
@@ -86,6 +88,8 @@ jobs:
8688
run: yarn workspaces foreach -A --include ${{ matrix.lib.name }} run tsc
8789

8890
tabs:
91+
if: ${{ needs.find-packages.outputs.tabs != '[]' }}
92+
8993
runs-on: ubuntu-latest
9094
needs: find-packages
9195
strategy:
@@ -128,6 +132,8 @@ jobs:
128132
yarn tsc
129133
130134
bundles:
135+
if: ${{ needs.find-packages.outputs.bundles != '[]' }}
136+
131137
runs-on: ubuntu-latest
132138
needs: find-packages
133139
strategy:

0 commit comments

Comments
 (0)