Skip to content

Commit c001101

Browse files
authored
Update github-actions-metadata-update.sh
Break script if Google releases a major version update
1 parent f239498 commit c001101

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/github-actions-metadata-update.sh

+6
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ GITHUB_ACTION_WORKING_DIRECTORY=$(pwd)
4040
echo "google/libphonenumber latest release is ${UPSTREAM_GITHUB_RELEASE_TAG}"
4141
echo "libphonenumber-csharp latest release is ${DEPLOYED_NUGET_TAG}"
4242

43+
if [ "${UPSTREAM_GITHUB_RELEASE_TAG:1:1}" != "8" ]
44+
then
45+
echo "major version update"
46+
exit 123
47+
fi
48+
4349
if [ "$DEPLOYED_NUGET_TAG" = "${UPSTREAM_GITHUB_RELEASE_TAG:1}" ]
4450
then
4551
echo "versions match, new release not required"

0 commit comments

Comments
 (0)