Skip to content

Commit

Permalink
chore: fix adding version code to pubspec.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
blockbasti committed Feb 9, 2021
1 parent 01b0a47 commit d18f7a4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
skip-commit: 'true'

- name: Write versioncode to pubspec.yml
if: ${{ steps.changelog.outputs.skipped == 'false' }}
run: |
export VERSION=$(printf '%(%Y%m%d)T\n' -1)
sed -i -E -e "/version:/ s/$/\+$VERSION/" pubspec.yaml
Expand All @@ -48,6 +49,14 @@ jobs:
CHANGELOG: ${{ steps.changelog.outputs.changelog }}
run: echo $CHANGELOG > fastlane/metadata/android/en-US/changelogs/$(printf '%(%Y%m%d)T\n' -1).txt

- name: Delete automatically created tag
if: ${{ steps.changelog.outputs.skipped == 'false' }}
env:
TAG: ${{ steps.changelog.outputs.tag }}
run: |
git tag -d $TAG
git push --delete origin $TAG
- name: Commit changed files
if: ${{ steps.changelog.outputs.skipped == 'false' }}
uses: EndBug/add-and-commit@v7
Expand Down

0 comments on commit d18f7a4

Please sign in to comment.