Skip to content

Commit 308d104

Browse files
chore(release): fix CHANGELOG.md (#415)
* chore(release): fix CHANGELOG.md * upgrade cocoapods
1 parent 1732a77 commit 308d104

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,7 @@ jobs:
9393
install:
9494
# install hub
9595
- wget https://github.com/github/hub/releases/download/v2.11.2/hub-darwin-amd64-2.11.2.tgz -O /tmp/hub-darwin-amd64-2.11.2.tgz && tar -xvf /tmp/hub-darwin-amd64-2.11.2.tgz -C /usr/local/opt && ln -s /usr/local/opt/hub-darwin-amd64-2.11.2/bin/hub /usr/local/bin/hub
96+
# upgrade cocoapods
97+
- gem install cocoapods -v '1.6.1'
9698
script:
9799
- Scripts/run_release.sh

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
## 3.1.0
44
May 16th, 2019
55

6-
## New Features:
6+
### New Features:
77
* Introduced Decision notification listener to be able to record:
88
* Variation assignments for users activated in an experiment.
99
* Feature access for users.
1010
* Feature variable value for users.
1111

12-
## Bug Fixes:
12+
### Bug Fixes:
1313
* Feature variable APIs return default variable value when featureEnabled property is false. ([#390](https://github.com/optimizely/objective-c-sdk/pull/390))
1414

15-
## Deprecated
15+
### Deprecated
1616
* Activate notification listener is deprecated as of this release. Recommendation is to use the new Decision notification listener. Activate notification listener will be removed in the next major release.
1717

1818
## 3.0.2

Scripts/run_release.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ function release_github {
1111
CHANGELOG="CHANGELOG.md"
1212

1313
# check that CHANGELOG.md has been updated
14-
NEW_VERSION_CHECK=$(grep '^## ' ${CHANGELOG} | awk 'NR==1' | tr -d '# ')
14+
NEW_VERSION_CHECK=$(grep '^## \d\+\.\d\+.\d\+' ${CHANGELOG} | awk 'NR==1' | tr -d '# ')
1515
if [[ ${NEW_VERSION_CHECK} != ${VERSION} ]]; then
1616
echo "ERROR: ${CHANGELOG} has not been updated yet."
1717
exit 1
1818
fi
1919

20-
NEW_VERSION=$(grep '^## ' ${CHANGELOG} | awk 'NR==1')
21-
LAST_VERSION=$(grep '^## ' ${CHANGELOG} | awk 'NR==2')
20+
NEW_VERSION=$(grep '^## \d\+\.\d\+.\d\+' ${CHANGELOG} | awk 'NR==1')
21+
LAST_VERSION=$(grep '^## \d\+\.\d\+.\d\+' ${CHANGELOG} | awk 'NR==2')
2222

2323
DESCRIPTION=$(awk "/^${NEW_VERSION}$/,/^${LAST_VERSION}$/" ${CHANGELOG} | grep -v "^${LAST_VERSION}$")
2424

0 commit comments

Comments
 (0)