This action bumps the version found in either the files pubspec.yaml
or pubspec.yml
found in the root of the working directory.
Currently, only the build
part of the version will be incremented. Adding support for bumping the other parts of the version are planned.
Example:
version: 1.0.0+1
will be incremented to version: 1.0.0+2
Incrementing the build number allows the ability to tell if one build is newer than another. This action allows for it to be incremented during a workflow which can be useful in a nightly build for tagging commits.
There are no inputs in the current release.
new_version_raw
- set to the new incremented version with the formX.X.X+X
new_version_semantic
- set to the new incremented version with the formvX.X.X+X
name: nightly build
on:
workflow_dispatch:
schedule:
- cron: '15 12 * * *'
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: scottbisaillon/bump-dart-version@v1
id: bump_version