Skip to content

Commit

Permalink
Merge pull request #16 from syaiful-aa/dev/1.2.4
Browse files Browse the repository at this point in the history
versi 1.2.4
  • Loading branch information
syaiful-aa authored Jun 28, 2024
2 parents e629901 + c8a8a0f commit b2aa5ac
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 b2aa5ac

Please sign in to comment.