Skip to content

Commit e487b6d

Browse files
authored
chore: fix create_archive_and_notes to ignore release tool markers (#3355)
The create_archive_and_notes.sh script is incorrectly detecting the version markers in the tool meant to rewrite them. To fix, ignore those files.
1 parent b9ec06f commit e487b6d

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/create_archive_and_notes.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,22 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
set -o errexit -o nounset -o pipefail
16+
set -o nounset
17+
set -o pipefail
18+
set -o errexit
1719

20+
set -x
1821
# Exclude dot directories, specifically, this file so that we don't
1922
# find the substring we're looking for in our own file.
2023
# 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
24+
grep --exclude=CONTRIBUTING.md \
25+
--exclude=RELEASING.md \
26+
--exclude=release.py \
27+
--exclude=release_test.py \
28+
--exclude-dir=.* \
29+
VERSION_NEXT_ -r || grep_exit_code=$?
30+
31+
if [[ $grep_exit_code -eq 0 ]]; then
2232
echo
2333
echo "Found VERSION_NEXT markers indicating version needs to be specified"
2434
exit 1

0 commit comments

Comments
 (0)