microsoft / appcenter-build-scripts-examples

A collection of build script examples to be used in the Build service of https://appcenter.ms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Expose release notes to scripts

a-b opened this issue · comments

Please consider exposing release notes via the environment variable or a text file available for automation.

+1. Currently the only way to do it - modify last commit message with 'git commit --amend'

We added this code to our post-clone script (API = App Center Build Environment variable):

if [ "$APPCENTER_BRANCH" == "master" ];
then
git commit --amend -m "$LASTCOMMITMESSAGE" -m "API: $(echo $API)" -m "$(cat releasenotes.txt)"
fi

@SlavaChernikoff feel free to add an example script to this repository.

@a-b any feature requests please submit to our public repo.

@SlavaChernikoff Unfortunatelly it doesn't work any more. I do commit amend in post-clone but release notes are still default.