Skip to content

Commit 4696f68

Browse files
author
David Cavazos
committed
run test only if paths is not empty
1 parent fe5c455 commit 4696f68

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/custard-run-dev.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ jobs:
5454
create-check-if: ${{ !!github.event.workflow_run }}
5555

5656
test:
57+
if: needs.affected.outputs.paths
5758
needs: affected
5859
runs-on: ubuntu-latest
5960
timeout-minutes: 120 # 2 hours hard limit
@@ -62,7 +63,7 @@ jobs:
6263
strategy:
6364
fail-fast: false
6465
matrix:
65-
path: ${{ fromJson(needs.affected.outputs.paths) }}
66+
path: ${{ needs.affected.outputs.paths }}
6667
continue-on-error: true
6768
env:
6869
GOOGLE_SAMPLES_PROJECT: long-door-651

.github/workflows/custard-run.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ jobs:
9393
status: failure
9494

9595
test:
96+
if: needs.affected.outputs.paths
9697
needs: affected
9798
runs-on: ubuntu-latest
9899
timeout-minutes: 120 # 2 hours hard limit

0 commit comments

Comments
 (0)