Skip to content

Commit 93f8f8a

Browse files
fix: handle scenario when there are no changes in v2.json (#793)
1 parent 14b7506 commit 93f8f8a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/release-spec.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ jobs:
168168
169169
export bump_release='false'
170170
changed_lines=$(git diff --numstat openapi/v2.json | awk '{print $1}')
171+
# Default to 0 if empty
172+
changed_lines=${changed_lines:-0}
171173
if [ "${changed_lines}" -gt 1 ]; then
172174
export bump_release='true'
173175
fi

0 commit comments

Comments
 (0)