Add some logging to release note generator. (#1370)

* Add some logging to release note generator.

* Add release note generation to PR builds.

* Update fetch depth.

* Remove command that is failing randomly...
This commit is contained in:
Justin Bassett 2021-02-21 22:03:16 -05:00 committed by GitHub
parent 4ea4c1a223
commit 5bbfde42b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 5 deletions

View file

@ -8,15 +8,19 @@ runs:
shell: bash
run: |
mkdir -p ./app/build/outputs/
echo "Previous Release Commit:"
git tag -l --sort=-creatordate | grep -v beta- | head -n 1
previous=`git tag -l --sort=-creatordate | grep -v beta- | head -n 1`
echo "# Changes:" > ./app/build/outputs/changelogGithub
echo "Changlog:"
git log --format="* %s" ${previous}..HEAD
git log --format="* %s" ${previous}..HEAD >> ./app/build/outputs/changelogGithub
echo "Beta Changelog"
git log --format="* %s" HEAD^..HEAD
git log --format="* %s" HEAD^..HEAD > ./app/build/outputs/changelogBeta
mkdir -p app/src/main/play/release-notes/en-US/
current=`git tag -l --sort=-creatordate | head -n 1`
echo "Full release change log: https://github.com/home-assistant/android/releases/tag/${current}" > app/src/main/play/release-notes/en-US/default.txt
echo Github Changelog:
cat ./app/build/outputs/changelogGithub
echo "Full release change log: https://github.com/home-assistant/android/releases/latest" > app/src/main/play/release-notes/en-US/default.txt

View file

@ -87,6 +87,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
@ -106,6 +109,9 @@ jobs:
cp .github/mock-google-services.json app/google-services.json
cp .github/mock-google-services.json wear/google-services.json
- uses: ./.github/actions/create-release-notes
name: Create Release Notes
- name: Build Debug APK
run: ./gradlew assembleDebug