Skip to content

Commit

Permalink
Update commit-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mueller-ma authored Dec 28, 2020
1 parent 417ee12 commit 83de898
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/commit-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ on:

env:
GRADLE_FILE: "mobile/build.gradle"
VERSION_CODE: 0
VERSION_NAME: ""
TAG_NAME: ""

jobs:
build:
Expand All @@ -33,6 +30,11 @@ jobs:
echo "Replace versionName with $VERSION_NAME"
sed --in-place -r "s/versionName \"(.*)\"/versionName \"${VERSION_NAME}\"/" $GRADLE_FILE
# Save variables for next steps
echo "VERSION_CODE=$VERSION_CODE" >> $GITHUB_ENV
echo "VERSION_NAME=$VERSION_NAME" >> $GITHUB_ENV
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV
- name: Build store description
run: |
if $(echo "$GITHUB_REF" | grep -q "beta")
Expand All @@ -46,10 +48,10 @@ jobs:
- name: Download release notes
run: |
echo "Get release notes for version code $VERSION_CODE"
echo "Get release notes for version code ${{ env.VERSION_CODE }}"
retryCount=0
until curl https://api.github.com/repos/openhab/openhab-android/releases | jq -r '.[0].body' > fastlane/metadata/android/en-US/changelogs/${VERSION_CODE}.txt
until curl https://api.github.com/repos/openhab/openhab-android/releases | jq -r '.[0].body' > fastlane/metadata/android/en-US/changelogs/${{ env.VERSION_CODE }}.txt
do
let retryCount++
if [ "$retryCount" -gt 20 ]
Expand All @@ -63,7 +65,7 @@ jobs:
echo ""
echo "Got release notes:"
echo "========================"
cat fastlane/metadata/android/en-US/changelogs/${VERSION_CODE}.txt
cat fastlane/metadata/android/en-US/changelogs/${{ env.VERSION_CODE }}.txt
echo "========================"
- name: Commit changes
Expand Down

0 comments on commit 83de898

Please sign in to comment.