Compare commits
2 Commits
release/v1
...
release/io
| Author | SHA1 | Date | |
|---|---|---|---|
| a512a65844 | |||
| 207b44f67f |
@@ -4,7 +4,7 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- "release/v*"
|
- "release/ios/v*"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
testflight:
|
testflight:
|
||||||
|
|||||||
@@ -24,14 +24,15 @@ end
|
|||||||
def release_version
|
def release_version
|
||||||
tag = ENV["SYBIL_VERSION_TAG"]
|
tag = ENV["SYBIL_VERSION_TAG"]
|
||||||
tag = ENV["GITHUB_REF_NAME"] if !present?(tag)
|
tag = ENV["GITHUB_REF_NAME"] if !present?(tag)
|
||||||
|
tag = ENV["GITHUB_REF"].to_s.sub(%r{\Arefs/tags/}, "") if !present?(tag)
|
||||||
tag = sh("git describe --tags --abbrev=0").strip if !present?(tag)
|
tag = sh("git describe --tags --abbrev=0").strip if !present?(tag)
|
||||||
version = tag.to_s.sub(%r{\Arelease/}, "").sub(/\Av/, "")
|
match = tag.to_s.match(%r{\Arelease/ios/v(\d+\.\d+\.\d+)\z})
|
||||||
|
|
||||||
unless version.match?(/\A\d+\.\d+\.\d+\z/)
|
unless match
|
||||||
UI.user_error!("Release tag must look like v1.2.3; got #{tag.inspect}")
|
UI.user_error!("Release tag must look like release/ios/v1.2.3; got #{tag.inspect}")
|
||||||
end
|
end
|
||||||
|
|
||||||
version
|
match[1]
|
||||||
end
|
end
|
||||||
|
|
||||||
# App Store Connect requires CFBundleVersion to be unique and strictly
|
# App Store Connect requires CFBundleVersion to be unique and strictly
|
||||||
|
|||||||
Reference in New Issue
Block a user