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 8585 env :
8686 GITHUB_TOKEN : ${{ secrets.CI_USER_TOKEN }}
8787 BRANCH : ${{ github.ref_name }}
88+ COCOAPODS_TRUNK_TOKEN : ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
8889 COCOAPODS_VERSION : ' 1.11.3'
8990 run : |
9091 gem install cocoapods -v $COCOAPODS_VERSION
Original file line number Diff line number Diff line change 88# COCOAPODS_TRUNK_TOKEN - should be defined in job settings so that we can `pod trunk push`
99
1010function 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+
1117 CHANGELOG=" CHANGELOG.md"
1218
1319 # check that CHANGELOG.md has been updated
@@ -23,7 +29,6 @@ function release_github {
2329 DESCRIPTION=$( awk " /^${NEW_VERSION} $/,/^${LAST_VERSION:- nothingmatched} $/" ${CHANGELOG} | grep -v " ^${LAST_VERSION:- nothingmatched} $" )
2430
2531 hub release create v${VERSION} -m " Release ${VERSION} " -m " ${DESCRIPTION} " -t " ${BRANCH} "
26-
2732}
2833
2934function release_cocoapods {
You can’t perform that action at this time.
0 commit comments