From fdec968530527e36802a7827a5d15b46f4e559db Mon Sep 17 00:00:00 2001 From: Ian Maia Date: Tue, 2 Jul 2024 20:45:17 +0200 Subject: [PATCH] [TO REVERT] Add temp lane to test git push permissions --- .buildkite/new-beta-release.yml | 8 ++++++++ fastlane/lanes/release.rb | 10 ++++++++++ 2 files changed, 18 insertions(+) diff --git a/.buildkite/new-beta-release.yml b/.buildkite/new-beta-release.yml index 4f2b8e441881..bf88ce16e3bd 100644 --- a/.buildkite/new-beta-release.yml +++ b/.buildkite/new-beta-release.yml @@ -15,3 +15,11 @@ steps: bundle exec fastlane new_beta_release skip_confirm:true agents: queue: "tumblr-metal" + +steps: + - label: "Test Git Push 👀" + plugins: [$CI_TOOLKIT] + command: | + bundle exec fastlane test_git_push + agents: + queue: "tumblr-metal" diff --git a/fastlane/lanes/release.rb b/fastlane/lanes/release.rb index d8491ed76b88..4188b46aed6e 100644 --- a/fastlane/lanes/release.rb +++ b/fastlane/lanes/release.rb @@ -121,6 +121,16 @@ create_release_management_pull_request('trunk', "Merge #{new_version} code freeze into trunk") end + lane :test_git_push do |options| + UI.message 'Bumping beta version and build code...' + VERSION_FILE.write_version( + version_name: code_freeze_beta_version, + version_code: next_build_code + ) + commit_version_bump + push_to_git_remote(tags: false) + end + ##################################################################################### # new_beta_release # -----------------------------------------------------------------------------------