-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d7cd589
commit e85ac67
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: stable | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
bump-version-after-release: | ||
type: boolean | ||
description: | | ||
Whether to bump the version after the release. TestFlight versions need | ||
to be newer than the App Store versions. This is why we need to bump the | ||
version after the stable release. | ||
permissions: {} | ||
|
||
jobs: | ||
bump-version: | ||
if: github.event.inputs.bump-version-after-release == 'true' | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 | ||
- uses: dart-lang/setup-dart@v1 | ||
|
||
- name: Install cider | ||
run: dart pub global activate cider 0.2.7 | ||
|
||
- name: Bump version | ||
working-directory: flutter_macos_flavors | ||
run: | | ||
VERSION=$(cider bump patch) | ||
echo "New version: $VERSION" | ||
BRANCH_NAME=pump-version-$VERSION | ||
echo "BRANCH_NAME=$(echo pump-version-$VERSION)" >> $GITHUB_ENV | ||
git checkout -b $BRANCH_NAME | ||
git add pubspec.yaml | ||
git commit -m "Bump app version to $VERSION" | ||
git push --set-upstream origin $BRANCH_NAME | ||
gh pr create --fill |