Skip to content

Commit

Permalink
fix: Fixed issue github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Subhash703 committed Nov 8, 2024
1 parent 097faf6 commit 6bdceee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,21 @@ jobs:
- name: Stash changes
run: git reset --hard

- name: Get changelog
id: changelog
run: echo "commit_message=$(git log -1 --pretty=%B)" >> $GITHUB_ENV

- name: Update version in pubspec.yaml
run: |
# Update the version in pubspec.yaml
sed -i "s/^version: .*/version: ${{ env.new_version }}/" pubspec.yaml
sed -i "s/^ s.version.*/ s.version = '${{ env.new_version }}'/g" ios/hypersdkflutter.podspec
sed -i "s/s.version[ ]*=[ ]*'.*'/s.version = '${{ env.new_version }}'/g" ios/hypersdkflutter.podspec
sed -i "1s/^/# ${{ env.new_version }}\n* ${{ env.commit_message }}\n\n/" CHANGELOG.md
# Commit the updated pubspec.yaml file
git add pubspec.yaml
git add ios/hypersdkflutter.podspec
git add CHANGELOG.md
git commit -m "chore: bump version to ${{ env.new_version }}"
shell: bash

Expand Down
2 changes: 1 addition & 1 deletion ios/hypersdkflutter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ puts ("HyperSDK HyperSDK Version Version: #{hyper_sdk_version}")

Pod::Spec.new do |s|
s.name = 'hypersdkflutter'
s.version = '4.0.22'
s.version = '4.0.23'
s.summary = 'Flutter plugin for Juspay SDK'
s.description = <<-DESC
Flutter plugin for juspay SDK.
Expand Down

0 comments on commit 6bdceee

Please sign in to comment.