Skip to content

Commit

Permalink
Update ensure-podspec-version.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan6sha authored Sep 11, 2023
1 parent c07b000 commit c83e292
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/ensure-podspec-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Update Podspec Version
on:
release:
types: [published]
workflow_dispatch:

jobs:
update-version:
Expand All @@ -22,6 +23,11 @@ jobs:
sed -i 's/\(s.version\s*=\s*\).*$/\1'"\"$VERSION\""'/g' Fula.podspec
sed -i 's/#{s.version}/'"$VERSION"'/g' Fula.podspec
- name: Set up Git
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
- name: Commit and push
run: |
git add .
Expand All @@ -36,14 +42,3 @@ jobs:
labels: 'version update, automated pr'
branch: 'update-version-${{ github.event.release.tag_name }}'
draft: false

- name: Set up Git
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
- name: Commit and push
run: |
git add .
git commit -m "Update version to $VERSION"
git push

0 comments on commit c83e292

Please sign in to comment.