- name: Setup Dart SDK
uses: dart-lang/[email protected]
- name: install cider
run: pub global activate cider
- name: Change flutter version tag
run: |
echo "FLUTTER_BUILD_VERSION=$(cider bump patch --bump-build)" >> "$GITHUB_ENV"
This small github action can increment the build number variable in the pubspec.yaml.
for example, the version tag: 1.0.0+1
becomes 1.0.0+2
.
This action gives clear error messages if something went wrong.
PR's, comments and issues welcome!
input variable | type | default value | description |
---|---|---|---|
working-directory | string | "./" | The root directory of a flutter project in this repository, containing the pubspec.yaml file. |
increase-build-number | "true" | Set to "true" if the build number should be increased. |
Say you have a folder in your repository called root-flutter-folder
, then you can use the action like this.
- name: Increment flutter build number
uses: BentEngbers/[email protected]
with:
working-directory: ./root-flutter-folder
This extension is written in typescript and only contains 126 lines of code and 17 tests (as of 13-08-2022).