Skip to content

Commit 9d50d40

Browse files
author
David Cavazos
committed
success check if no paths are found
1 parent ba46775 commit 9d50d40

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,17 @@ jobs:
125125
with:
126126
check: ${{ needs.affected.outputs.check }}
127127
status: success
128+
129+
nothing-to-do:
130+
if: needs.affected.outputs.paths != '[]'
131+
needs: [affected]
132+
runs-on: ubuntu-latest
133+
permissions:
134+
statuses: write
135+
steps:
136+
- name: Check success
137+
uses: GoogleCloudPlatform/cloud-samples-tools/actions/steps/[email protected]
138+
with:
139+
check: ${{ needs.affected.outputs.check }}
140+
status: success
141+
title: Nothing to test

.github/workflows/custard-run.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,3 +164,17 @@ jobs:
164164
with:
165165
check: ${{ needs.affected.outputs.check }}
166166
status: success
167+
168+
nothing-to-do:
169+
if: needs.affected.outputs.paths != '[]'
170+
needs: [affected]
171+
runs-on: ubuntu-latest
172+
permissions:
173+
statuses: write
174+
steps:
175+
- name: Check success
176+
uses: GoogleCloudPlatform/cloud-samples-tools/actions/steps/[email protected]
177+
with:
178+
check: ${{ needs.affected.outputs.check }}
179+
status: success
180+
title: Nothing to test

0 commit comments

Comments
 (0)