Skip to content

Commit

Permalink
ci: fix error when there's no new version
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgomesdev committed Oct 4, 2024
1 parent d6e6f19 commit c8c8fd6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:

# Google Play requires version code (int) to increment on every release
- name: 🔧 - Prepare release
if: steps.semantic-release.outputs.new_release_published == 'true'
run: |
versionCode=$(date '+%Y%m%d')
sed -i -e "s/version: .*/version: ${{ steps.semantic-release.outputs.new_release_version }}+$versionCode/g" pubspec.yaml
Expand Down

0 comments on commit c8c8fd6

Please sign in to comment.