diff --git a/.github/workflows/update-main-version.yml b/.github/workflows/update-main-version.yml index 8a4daae..250d046 100644 --- a/.github/workflows/update-main-version.yml +++ b/.github/workflows/update-main-version.yml @@ -28,7 +28,9 @@ jobs: - name: Get version id: get-version run: | - base_sha=${{ github.event.pull_request.base_sha }} + base_sha=${{ github.event.pull_request.base.sha }} + echo $base_sha + git fetch origin $base_sha prev_version=$(git show ${base_sha}:pubspec.yaml | grep 'version:' | cut -d ':' -f2 | sed 's/ //' | cut -d'+' -f1) diff --git a/pubspec.yaml b/pubspec.yaml index eea6345..eb38f0b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: quick_math description: A new Flutter package project. -version: 1.2.4 +version: 1.2.5 homepage: environment: