From 143ea9bde96588e9c44d370b75cc15dd0cc19c0c Mon Sep 17 00:00:00 2001 From: mueller-ma Date: Mon, 28 Dec 2020 20:42:07 +0100 Subject: [PATCH] Update commit-release.yml --- .github/workflows/commit-release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/commit-release.yml b/.github/workflows/commit-release.yml index 14575b5294..36156a87f2 100644 --- a/.github/workflows/commit-release.yml +++ b/.github/workflows/commit-release.yml @@ -43,9 +43,11 @@ jobs: - name: Download release notes run: | - retryCount=0 + gradle_file="mobile/build.gradle" currentVersionCode=$(grep 'versionCode' $gradle_file | sed -r 's/(.*) (.*)$/\2/') echo "Get release notes for version code $currentVersionCode" + + retryCount=0 until curl https://api.github.com/repos/openhab/openhab-android/releases | jq -r '.[0].body' > fastlane/metadata/android/en-US/changelogs/${currentVersionCode}.txt do let retryCount++ @@ -64,7 +66,7 @@ jobs: echo "========================" - name: Commit changes - uses: EndBug/add-and-commit@v6 # You can change this to use a specific version + uses: EndBug/add-and-commit@v6 with: add: '.' author_name: openhab-bot