Skip to content

Commit

Permalink
ci: Fix pre release check
Browse files Browse the repository at this point in the history
Signed-off-by: Hu Shenghao <[email protected]>
  • Loading branch information
hushenghao committed Nov 27, 2024
1 parent 0ccd93b commit 5e08e62
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ platform :android do
end

ref_name = options[:ref_name]
if ref_name.nil?
puts "⚠️ github.ref_name not found, skip!"
next
end

is_pre_release = is_pre_release_ref(ref_name)
if is_pre_release
Expand All @@ -116,11 +120,6 @@ platform :android do
gradle(tasks: ["clean", "app:assembleFossProductRelease"])
end

if ref_name.nil?
puts "⚠️ github.ref_name not found, skip!"
next
end

# https://docs.fastlane.tools/actions/gradle/
# Lane Variables
apk_path = lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH]
Expand Down Expand Up @@ -196,7 +195,7 @@ platform :android do
# tracks are: production, beta, alpha, internal

ref_name = options[:ref_name]
if is_pre_release(ref_name)
if is_pre_release_ref(ref_name)
# Upload new beta version
gradle(task: "clean app:bundleMarketBetaRelease")
upload_to_play_store(
Expand Down

0 comments on commit 5e08e62

Please sign in to comment.