File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 85
85
env :
86
86
GITHUB_TOKEN : ${{ secrets.CI_USER_TOKEN }}
87
87
BRANCH : ${{ github.ref_name }}
88
+ COCOAPODS_TRUNK_TOKEN : ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
88
89
COCOAPODS_VERSION : ' 1.11.3'
89
90
run : |
90
91
gem install cocoapods -v $COCOAPODS_VERSION
Original file line number Diff line number Diff line change 8
8
# COCOAPODS_TRUNK_TOKEN - should be defined in job settings so that we can `pod trunk push`
9
9
10
10
function release_github {
11
+ LAST_RELEASE=$( git describe --abbrev=0 --tags)
12
+ if [[ ${LAST_RELEASE} == " v${VERSION} " ]]; then
13
+ echo " ${LAST_RELEASE} tag exists already (probably created while in the current release process). Skipping..."
14
+ return
15
+ fi
16
+
11
17
CHANGELOG=" CHANGELOG.md"
12
18
13
19
# check that CHANGELOG.md has been updated
@@ -23,7 +29,6 @@ function release_github {
23
29
DESCRIPTION=$( awk " /^${NEW_VERSION} $/,/^${LAST_VERSION:- nothingmatched} $/" ${CHANGELOG} | grep -v " ^${LAST_VERSION:- nothingmatched} $" )
24
30
25
31
hub release create v${VERSION} -m " Release ${VERSION} " -m " ${DESCRIPTION} " -t " ${BRANCH} "
26
-
27
32
}
28
33
29
34
function release_cocoapods {
You can’t perform that action at this time.
0 commit comments