diff --git a/.github/workflows/ensure-podspec-version.yml b/.github/workflows/ensure-podspec-version.yml index 9c49bf3d..73981fc3 100644 --- a/.github/workflows/ensure-podspec-version.yml +++ b/.github/workflows/ensure-podspec-version.yml @@ -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: | @@ -27,4 +27,4 @@ jobs: run: | git add . git commit -m "Update version to $VERSION" - git push \ No newline at end of file + git push