Skip to content

Commit dc65c65

Browse files
committed
chore: explicitly check for exit code 0 for create_archive_and_notes.sh grep
1 parent d6c42e1 commit dc65c65

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/create_archive_and_notes.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ grep --exclude=CONTRIBUTING.md \
2424
--exclude=release_test.py \
2525
--exclude-dir=.* \
2626
VERSION_NEXT_ -r
27-
if $?; then
27+
grep_exit_code=$?
28+
if $grep_exit_code -ne 0; then
2829
echo
2930
echo "Found VERSION_NEXT markers indicating version needs to be specified"
3031
exit 1

0 commit comments

Comments
 (0)