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 c86165f commit a3acc0b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ jobs:
with:
channel: 'stable'

- name: Write versioncode to pubspec.yml
run: |
export VERSION=$(printf '%(%Y%m%d)T\n' -1)
sed -i -E -e "s/\+[0-9]+/\+$VERSION/g" pubspec.yaml
- name: Build full changelog
id: changelog
uses: TriPSs/conventional-changelog-action@v3
Expand All @@ -42,6 +37,11 @@ jobs:
skip-version-file: 'false'
skip-commit: 'false'

- name: Write versioncode to pubspec.yml
run: |
export VERSION=$(printf '%(%Y%m%d)T\n' -1)
sed -i -E -e "/version:/ s/$/\+$VERSION/" pubspec.yaml
- name: Write changelog to fastlane
if: ${{ steps.changelog.outputs.skipped == 'false' }}
env:
Expand All @@ -55,7 +55,7 @@ jobs:
author_name: Bastian Block
author_email: [email protected]
message: 'chore: write changelog to fastlane'
add: 'fastlane/metadata/android/en-US/changelogs/*.txt'
add: "['fastlane/metadata/android/en-US/changelogs/*.txt', 'pubspec.yaml']"

- name: Build APKs
if: ${{ steps.changelog.outputs.skipped == 'false' }}
Expand Down

0 comments on commit a3acc0b

Please sign in to comment.