Skip to content

Commit

Permalink
Merge pull request protocolbuffers#9650 from esorot/php-release-fix
Browse files Browse the repository at this point in the history
update PHP release to not fail on existing tag
  • Loading branch information
esorot committed Mar 18, 2022
2 parents a613353 + 523d94a commit 2099298
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions php/ext/google/protobuf/package.xml
Expand Up @@ -10,8 +10,8 @@
<email>protobuf-opensource@google.com</email>
<active>yes</active>
</lead>
<date>2022-03-15</date>
<time>21:10:15</time>
<date>2022-03-18</date>
<time>11:10:15</time>
<version>
<release>3.20.0RC2</release>
<api>3.20.0</api>
Expand Down
6 changes: 5 additions & 1 deletion php/release.sh
Expand Up @@ -30,7 +30,11 @@ mv ../protobuf/composer.json composer.json
sed -i 's|php/src|src|g' composer.json
git add .
git commit -m "$VERSION"
git tag "$VERSION"
if [ $(git tag -l "$VERSION") ]; then
echo "tag $VERSION already exists"
else
git tag "$VERSION"
fi
popd

# Clean up
Expand Down

0 comments on commit 2099298

Please sign in to comment.