mirror of
https://github.com/home-assistant/android
synced 2024-07-22 02:45:11 +00:00
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:
parent
4ea4c1a223
commit
5bbfde42b1
14
.github/actions/create-release-notes/action.yml
vendored
14
.github/actions/create-release-notes/action.yml
vendored
|
@ -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
|
||||
|
|
6
.github/workflows/pr.yml
vendored
6
.github/workflows/pr.yml
vendored
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue