Skip to content

Commit

Permalink
Update ensure-podspec-version.yml (#163)
Browse files Browse the repository at this point in the history
Correcting error:
Run VERSION=$(echo v1.14.0 | cut -c 2-) # remove the v from the tag name
  VERSION=$(echo v1.14.0 | cut -c 2-) # remove the v from the tag name
  sed -i 's/\(s.version\s*=\s*\).*$/\1\''"$VERSION"'\'/' Fula.podspec
  sed -i 's/#{s.version}/'"$VERSION"'/' Fula.podspec
  shell: /usr/bin/bash -e {0}
/home/runner/work/_temp/2da18604-9914-4133-876d-268891af60c5.sh: line 3: unexpected EOF while looking for matching `''
Error: Process completed with exit code 2.
  • Loading branch information
ehsan6sha authored Jul 31, 2023
1 parent 7138b0f commit b094564
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ensure-podspec-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
- name: Update version
run: |
VERSION=$(echo ${{ github.event.release.tag_name }} | cut -c 2-) # remove the v from the tag name
sed -i 's/\(s.version\s*=\s*\).*$/\1\''"$VERSION"'\'/' Fula.podspec
sed -i 's/#{s.version}/'"$VERSION"'/' Fula.podspec
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: |
Expand All @@ -27,4 +27,4 @@ jobs:
run: |
git add .
git commit -m "Update version to $VERSION"
git push
git push

0 comments on commit b094564

Please sign in to comment.