Skip to content

Commit

Permalink
BREAKING CHANGE: force major version
Browse files Browse the repository at this point in the history
  • Loading branch information
blockbasti committed Aug 30, 2021
1 parent d73a3f3 commit 8b7bd4f
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@ jobs:
with:
channel: 'stable'

- name: Write versioncode to pubspec.yml
env:
TAG: ${{ steps.changelog.outputs.version }}
run: |
export VERSION=$(grep -oP '(?<=version: )(\d\.\d\.\d)' ./pubspec.yaml)
export TIMESTAMP=$(printf '%(%Y%m%d)T\n' -1)
sed -i -E -e "4,4s/.*/version\: $VERSION\+$TIMESTAMP/" pubspec.yaml
- name: Build full changelog
id: changelog
uses: TriPSs/conventional-changelog-action@v3
Expand All @@ -44,7 +36,14 @@ jobs:
skip-on-empty: 'true'
skip-version-file: 'false'
skip-commit: 'true'
pre-changelog-generation: './scripts/pre_changelog.js'

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

0 comments on commit 8b7bd4f

Please sign in to comment.