Skip to content

Commit

Permalink
auto release creation disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Privalov committed Dec 7, 2021
1 parent af3c429 commit cbad0b1
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions scripts/release_notes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,21 @@

set -euo pipefail

export GITHUB_TOKEN=$(mbx-ci github writer token 2>/dev/null)
VERSION=1.0.0-beta.18

# Get dependency versions (MapboxCommon, MapboxMobileEvents)
MAPBOX_COMMON_DEPENDENCY_VERSION="$(grep -o 'MapboxCommon.*' Cartfile | grep -o '\d.*')"
MAPBOX_MOBILE_EVENTS_DEPENDENCY_VERSION="$(grep -o "MapboxMobileEvents.*" Cartfile | grep -o "\d.*")"

git config user.email "release-bot@mapbox.com"
git config user.name "Release SDK bot"

CHANGELOG_NOTES=$(parse-changelog CHANGELOG.md "$VERSION")

gh api --silent -X POST "/repos/{owner}/{repo}/releases" -F tag_name="v${VERSION}" -F name="Release v${VERSION}" \
-f body="## Changelog:
# disabled auto release creation
# gh api --silent -X POST "/repos/{owner}/{repo}/releases" -F tag_name="v${VERSION}" -F name="Release v${VERSION}" \
# -f body=

echo "## Changelog:
${CHANGELOG_NOTES}
## Dependencies
Expand Down

0 comments on commit cbad0b1

Please sign in to comment.