fastlane-plugin-wpmreleasetoolkit 12.1.0 → 12.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b71377d7f0e796edf717a11ca452dd7c155106e8950500a183b59284649741cd
4
- data.tar.gz: f948046099b8a967323e81aa409ccd806cbe6fc5d87a0a5624e0800055638511
3
+ metadata.gz: 5efb1f6f88d1bb1617313112768ef93497cabe3897bb4834c5026a4e9a68ced0
4
+ data.tar.gz: 8eaef85d47b2ec7be3e2da0693856923c02e6f67b65707e4143d7241147a7435
5
5
  SHA512:
6
- metadata.gz: 4431300d4963531af3f7c001a1f9b321ba1cdb8720721f9293046dccc07588b7a4bf5b00fa812623ddeb6e38e8a6f61fca84061f793fd9fc13ba46c6e4671d00
7
- data.tar.gz: 39da07fb31ddad66c5a8140b1ef35e1150607d8761dae047e56bae804b90e618ece0f6a04bdff3c3e92ee2c3e5f68acf1072cf90602e67dc3ec71a9ffc3620fc
6
+ metadata.gz: 7c05b2af7ca941a5afb52b703f3f0ee315e0ab48ffa87de88c48c5f22bbc1db82f0a819c7e4f2b10e754b6558569d801431e64b00f491e282eadd9885c4f75ac
7
+ data.tar.gz: fc832aaf5f31e2e6b3f51c268f38529f056dc40a0971fb67e962da313634e2c56580eeac23f8d2e94f2f3dcc74ad3d69b0a465724afb7c178501103a5c01d309
@@ -0,0 +1,63 @@
1
+ module Fastlane
2
+ module Actions
3
+ class BuildkitePipelineUploadAction < Action
4
+ DEFAULT_ENV_FILE = File.join('.buildkite', 'shared-pipeline-vars').freeze
5
+
6
+ def self.run(params)
7
+ pipeline_file = params[:pipeline_file]
8
+ env_file = params[:env_file]
9
+ environment = params[:environment]
10
+
11
+ UI.user_error!("Pipeline file not found: #{pipeline_file}") unless File.exist?(pipeline_file)
12
+ UI.user_error!('This action can only be called from a Buildkite CI build') unless ENV['BUILDKITE'] == 'true'
13
+
14
+ UI.message "Adding steps from `#{pipeline_file}` to the current build"
15
+
16
+ if env_file && File.exist?(env_file)
17
+ UI.message(" - Sourcing environment file beforehand: #{env_file}")
18
+
19
+ sh(environment, "source #{env_file.shellescape} && buildkite-agent pipeline upload #{pipeline_file.shellescape}")
20
+ else
21
+ sh(environment, 'buildkite-agent', 'pipeline', 'upload', pipeline_file)
22
+ end
23
+ end
24
+
25
+ def self.description
26
+ # https://buildkite.com/docs/agent/v3/cli-pipeline#uploading-pipelines
27
+ 'Uploads a pipeline to Buildkite, adding all its steps to the current build'
28
+ end
29
+
30
+ def self.available_options
31
+ [
32
+ FastlaneCore::ConfigItem.new(
33
+ key: :pipeline_file,
34
+ description: 'The path to the YAML pipeline file to upload',
35
+ optional: false,
36
+ type: String
37
+ ),
38
+ FastlaneCore::ConfigItem.new(
39
+ key: :env_file,
40
+ description: 'The path to a bash file to be sourced before uploading the pipeline',
41
+ optional: true,
42
+ default_value: DEFAULT_ENV_FILE,
43
+ type: String
44
+ ),
45
+ FastlaneCore::ConfigItem.new(
46
+ key: :environment,
47
+ description: 'Environment variables to load when running `pipeline upload`, to allow for variable substitution in the YAML pipeline',
48
+ type: Hash,
49
+ default_value: {}
50
+ ),
51
+ ]
52
+ end
53
+
54
+ def self.authors
55
+ ['Automattic']
56
+ end
57
+
58
+ def self.is_supported?(platform)
59
+ true
60
+ end
61
+ end
62
+ end
63
+ end
@@ -58,7 +58,7 @@ module Fastlane
58
58
  ),
59
59
  FastlaneCore::ConfigItem.new(
60
60
  key: :buildkite_organization,
61
- env_name: 'BUILDKITE_ORGANIZTION',
61
+ env_name: 'BUILDKITE_ORGANIZATION',
62
62
  description: 'The Buildkite organization that contains your pipeline',
63
63
  type: String
64
64
  ),
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Fastlane
4
4
  module Wpmreleasetoolkit
5
- VERSION = '12.1.0'
5
+ VERSION = '12.2.0'
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: 12.1.0
4
+ version: 12.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Automattic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-12 00:00:00.000000000 Z
11
+ date: 2024-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -406,6 +406,7 @@ files:
406
406
  - lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_update_release_notes.rb
407
407
  - lib/fastlane/plugin/wpmreleasetoolkit/actions/common/buildkite_annotate_action.rb
408
408
  - lib/fastlane/plugin/wpmreleasetoolkit/actions/common/buildkite_metadata_action.rb
409
+ - lib/fastlane/plugin/wpmreleasetoolkit/actions/common/buildkite_pipeline_upload_action.rb
409
410
  - lib/fastlane/plugin/wpmreleasetoolkit/actions/common/buildkite_trigger_build_action.rb
410
411
  - lib/fastlane/plugin/wpmreleasetoolkit/actions/common/check_for_toolkit_updates_action.rb
411
412
  - lib/fastlane/plugin/wpmreleasetoolkit/actions/common/check_translation_progress.rb