update PHP release to not fail on existing tag

pull/9650/head
theodorerose 3 years ago
parent a6133534e2
commit 523d94a445
  1. 4
      php/ext/google/protobuf/package.xml
  2. 4
      php/release.sh

@ -10,8 +10,8 @@
<email>protobuf-opensource@google.com</email> <email>protobuf-opensource@google.com</email>
<active>yes</active> <active>yes</active>
</lead> </lead>
<date>2022-03-15</date> <date>2022-03-18</date>
<time>21:10:15</time> <time>11:10:15</time>
<version> <version>
<release>3.20.0RC2</release> <release>3.20.0RC2</release>
<api>3.20.0</api> <api>3.20.0</api>

@ -30,7 +30,11 @@ mv ../protobuf/composer.json composer.json
sed -i 's|php/src|src|g' composer.json sed -i 's|php/src|src|g' composer.json
git add . git add .
git commit -m "$VERSION" git commit -m "$VERSION"
if [ $(git tag -l "$VERSION") ]; then
echo "tag $VERSION already exists"
else
git tag "$VERSION" git tag "$VERSION"
fi
popd popd
# Clean up # Clean up

Loading…
Cancel
Save