Skip to content

Commit be46a97

Browse files
author
Ignacio Bonafonte
authored
Update updateVersion.sh (#508)
Properly add the version file to the auto-commit
1 parent cf39899 commit be46a97

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Scripts/updateVersion.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
#Update version number
77
sed -E -i '' 's/public static let OTEL_SWIFT_SDK_VERSION = ".+"/public static let OTEL_SWIFT_SDK_VERSION = "'$2\"/ ./Sources/OpenTelemetrySdk/Version.swift
8+
cat ./Sources/OpenTelemetrySdk/Version.swift
9+
git add ./Sources/OpenTelemetrySdk/Version.swift
810
git commit -m "Updated version number to $2"
911
git tag -f $2
1012
git push -f --tags origin HEAD:main

0 commit comments

Comments
 (0)