fastlane-plugin-wpmreleasetoolkit 13.1.1 → 13.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 202b4a58edac9a14316472344b1d6846af0e39c0c3596a19e02dfb12a57b6e21
4
- data.tar.gz: be0de1e413c994c8af7060ab988343610843c940244a91c41e12fed0fc9c2e6f
3
+ metadata.gz: 58554aababcf0bef878ca3af98c8380c5a90f03ece833bfb3686e12f9f34bbf1
4
+ data.tar.gz: 65889ef19ebb737a8bc141c05ff86cf86974af4cc63c5c5735d4b03faf263380
5
5
  SHA512:
6
- metadata.gz: 9cca3a4720bde57c7dabd408203702b929fbcc008409546dd7e7ad2f49de786016bb80da8d62b7091ece5ef0568b7146761634492c07123c50c046c98dd8354d
7
- data.tar.gz: c7853ac08d918d06f73c61cbf9302242ff970aa0859b9a788c9e32ae3efd6311f812976e3cb8b5b078da6a05debd7485e98a733c39223f693de34bf87adae326
6
+ metadata.gz: 89f80c2ff710910c5c24c4971bcd44a508d33db3f6bb6944fd37a337202b2c320175fd7a844e1f293900831e92258e355680b8ddbebf47a0a5dee27003df1c92
7
+ data.tar.gz: 0a7a0c11bdbd423900d8bfbbc0f4b03740480992984a56138c57fd018d574204af27a5b9cd44a43598285cbe128b2d78d895ee66eeaa79a4cc78909df4d28d3b
@@ -114,8 +114,12 @@ module Fastlane
114
114
  Dir.chdir(FastlaneCore::FastlaneFolder.path) do
115
115
  intermediate_branch_created_callback.call(base_branch, intermediate_branch)
116
116
  end
117
+
117
118
  # Make sure the callback block didn't switch branches
118
- other_action.ensure_git_branch(branch: "^#{intermediate_branch}$")
119
+ current_branch = Fastlane::Helper::GitHelper.current_git_branch
120
+ unless current_branch == intermediate_branch
121
+ UI.user_error!("The callback switched branches. Expected to be on '#{intermediate_branch}' branch but was on '#{current_branch}'.")
122
+ end
119
123
 
120
124
  # When a callback was provided, do the pre-check about valid PR _only_ at that point, in case the callback added new commits
121
125
  unless can_merge?(intermediate_branch, into: base_branch)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Fastlane
4
4
  module Wpmreleasetoolkit
5
- VERSION = '13.1.1'
5
+ VERSION = '13.1.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-wpmreleasetoolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 13.1.1
4
+ version: 13.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Automattic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-14 00:00:00.000000000 Z
11
+ date: 2025-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport