📱 Github Action to read out version number of flutter project from pubspec.yaml
on:
push:
branches:
- main
name: Test
jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: read-version
uses: NiklasLehnfeld/flutter-version-number-action@main
with:
file-path: example/pubspec.yaml
- uses: nick-invision/assert-action@v1
with:
expected: 0.0.1+1
actual: ${{ steps.read-version.outputs.version-number }}