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 d18f7a4 commit 9dc08a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ jobs:

- name: Write versioncode to pubspec.yml
if: ${{ steps.changelog.outputs.skipped == 'false' }}
env:
TAG: ${{ steps.changelog.outputs.version }}
run: |
export VERSION=$(printf '%(%Y%m%d)T\n' -1)
sed -i -E -e "/version:/ s/$/\+$VERSION/" pubspec.yaml
sed -i -E -e "6,6s/.*/version\: $TAG\+$VERSION/" pubspec.yaml
- name: Write changelog to fastlane
if: ${{ steps.changelog.outputs.skipped == 'false' }}
Expand Down

0 comments on commit 9dc08a8

Please sign in to comment.