Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fixed issue github workflow #53

Merged
merged 1 commit into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading