Skip to content

Commit 8f4acfc

Browse files
committed
adjust early return
1 parent 3544296 commit 8f4acfc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@ jobs:
160160
if: steps.cache_dependencies.outputs.cache-hit != 'true'
161161
run: yarn install --ignore-engines --frozen-lockfile
162162

163-
- name: Skip step if no code changes
163+
- name: Early return if no code changes
164164
if: needs.job_get_metadata.outputs.changed_any_code == 'false'
165-
run: echo "No code changes, skipping build."
165+
run: echo "Skipping build because there are no file changes" && exit 0
166166

167167
- name: Check for Affected Nx Projects
168168
uses: dkhunt27/[email protected]

0 commit comments

Comments
 (0)