File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 3838 - name : Check version and create tag if needed
3939 id : check
4040 run : |
41- # Get current version from Info.plist using plutil for robust XML parsing
42- CURRENT_VERSION=$(/usr/bin/plutil -extract CFBundleShortVersionString xml1 -o - V2er/Info.plist | grep '<string>' | sed 's/.*<string> \(.*\)<\/string>.* /\1/' | xargs)
43- CURRENT_BUILD=$(/usr/bin/plutil -extract CFBundleVersion xml1 -o - V2er/Info.plist | grep '<string>' | sed 's/.*<string> \(.*\)<\/string>.* /\1/' | xargs)
41+ # Get current version from project.pbxproj (works on Linux)
42+ CURRENT_VERSION=$(grep -m1 'MARKETING_VERSION = ' V2er.xcodeproj/project.pbxproj | sed 's/.*MARKETING_VERSION = \(.*\); /\1/' | xargs)
43+ CURRENT_BUILD=$(grep -m1 'CURRENT_PROJECT_VERSION = ' V2er.xcodeproj/project.pbxproj | sed 's/.*CURRENT_PROJECT_VERSION = \(.*\); /\1/' | xargs)
4444
4545 echo "Current version: $CURRENT_VERSION (build $CURRENT_BUILD)"
4646
You can’t perform that action at this time.
0 commit comments