fix releasenotes for Appcenter

add current branch at the beginning
fix command to get the short logs for the last five commits
This commit is contained in:
Felix 2020-10-04 20:10:19 +02:00
parent 7efc839710
commit 706aaa236e
2 changed files with 3 additions and 1 deletions

View file

@ -51,6 +51,8 @@ done < "${release_notes_file}"
release_notes="$(tr '"' "'" <<< $release_notes)"
release_notes=${release_notes::5000}
printf "RELEASE NOTES:\n===\n$release_notes\n===\n"
# Step 4: Distribute the uploaded release to a distribution group"
release_url="https://api.appcenter.ms/v0.1/apps/${owner_name}/${app_name}/releases/${release_id}"
data="{ \"destination_name\": \"${destination_name}\", \"release_notes\": \"${release_notes}\" }"

View file

@ -234,7 +234,7 @@ jobs:
- run:
name: Appcenter Upload
command: |
git log --format="%h %s" master..HEAD > $RELEASENOTES_FILE
echo "[$CIRCLE_BRANCH]\n" > $RELEASENOTES_FILE \
.circleci/appCenterUpload.sh \
$APPCENTER_OWNER \
$APPCENTER_TOKEN \