Skip to content

Commit

Permalink
1.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
syaiful-aa committed Jun 28, 2024
1 parent e629901 commit c8a8a0f
Show file tree
Hide file tree
Showing 3 changed files with 1,129 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/update-main-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ jobs:
- name: Get version
id: get-version
run: |
git fetch origin main
prev_version=$(git show origin/main:pubspec.yaml | grep 'version:' | cut -d ':' -f2 | sed 's/ //' | cut -d'+' -f1)
base_sha=${{ github.event.pull_request.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)
echo "prev_version=$prev_version" >> $GITHUB_OUTPUT
echo $prev_version
Expand Down
Loading

0 comments on commit c8a8a0f

Please sign in to comment.