Skip to content

Commit 5c4ad72

Browse files
committed
chore: fix create_archive_and_notes to ignore release tool markers
1 parent 43a5acf commit 5c4ad72

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/create_archive_and_notes.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,21 @@ set -o errexit -o nounset -o pipefail
1818
# Exclude dot directories, specifically, this file so that we don't
1919
# find the substring we're looking for in our own file.
2020
# Exclude CONTRIBUTING.md, RELEASING.md because they document how to use these strings.
21-
if grep --exclude=CONTRIBUTING.md --exclude=RELEASING.md --exclude-dir=.* VERSION_NEXT_ -r; then
21+
grep --exclude=CONTRIBUTING.md \
22+
--exclude=RELEASING.md \
23+
--exclude=release.py \
24+
--exclude=release_test.py \
25+
--exclude-dir=.* \
26+
VERSION_NEXT_ -r
27+
if $?; then
2228
echo
2329
echo "Found VERSION_NEXT markers indicating version needs to be specified"
2430
exit 1
2531
fi
2632

33+
echo "done"
34+
exit 1
35+
2736
# Set by GH actions, see
2837
# https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables
2938
TAG=${GITHUB_REF_NAME}

0 commit comments

Comments
 (0)