File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- set -x
15
+ set -xe
16
16
17
17
if [ -f " ${HOME} /.cocoapods/repos" ]; then
18
18
find " ${HOME} /.cocoapods/repos" -type d -maxdepth 1 -exec sh -c ' pod repo remove $(basename {})' \;
@@ -23,8 +23,16 @@ git config --global user.name "google-oss-bot"
23
23
mkdir -p /tmp/test/firebase-ios-sdk
24
24
git clone -q -b " ${podspec_repo_branch} " https://" ${BOT_TOKEN} " @github.com/firebase/firebase-ios-sdk.git " ${local_sdk_repo_dir} "
25
25
cd " ${local_sdk_repo_dir} "
26
+
27
+ # Update a tag.
28
+ set +e
29
+ # If tag_version is new to the remote, remote cannot delete an unexisted tag,
30
+ # so error is allowed here.
31
+ git push origin --delete " ${tag_version} "
32
+ set -e
26
33
git tag -f -a " ${tag_version} " -m " release testing"
27
34
git push origin " ${tag_version} "
35
+
28
36
# Update source and tag, e.g. ":tag => 'CocoaPods-' + s.version.to_s" to
29
37
# ":tag => test"
30
38
sed -i " " " s/\s*:tag.*/:tag => '${tag_version} '/" * .podspec
You can’t perform that action at this time.
0 commit comments