New build number (#5884)

* REF: new_build_number as global variable

* Update Fastfile
This commit is contained in:
Marcos Rodriguez Vélez 2023-12-06 09:08:58 -04:00 committed by GitHub
parent b17b3d6019
commit aed87266a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,11 +3,15 @@
platform :ios do platform :ios do
before_all do |lane, options| before_all do |lane, options|
UI.message("Setting up for all lanes...")
# Set the new build number to current Unix timestamp
@new_build_number = Time.now.to_i.to_s
UI.message("Build number set to: #{@new_build_number}")
UI.message("Discarding all untracked changes before running any lane...") UI.message("Discarding all untracked changes before running any lane...")
sh("git clean -fd")
sh("git clean -fd") # Remove untracked files and directories sh("git checkout -- .")
sh("git checkout -- .") # Discard changes in tracked files
end end
desc "Create a temporary keychain" desc "Create a temporary keychain"