Skip to content

Commit bc9af00

Browse files
committed
Update version extraction in release workflow to correctly handle podspec format
1 parent 6fba5bf commit bc9af00

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Validate version matches tag
3030
run: |
3131
# Extract version from podspec
32-
PODSPEC_VERSION=$(grep "s.version" arclight-event-tracker.podspec | sed 's/.*= "\(.*\)".*/\1/')
32+
PODSPEC_VERSION=$(grep "s.version " arclight-event-tracker.podspec | sed -n "s/.*'\([^']*\)'.*/\1/p")
3333
# Extract version from git tag (remove 'v' prefix)
3434
GIT_TAG_VERSION=${GITHUB_REF#refs/tags/v}
3535

0 commit comments

Comments
 (0)