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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5efb1f6f88d1bb1617313112768ef93497cabe3897bb4834c5026a4e9a68ced0
|
4
|
+
data.tar.gz: 8eaef85d47b2ec7be3e2da0693856923c02e6f67b65707e4143d7241147a7435
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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: '
|
61
|
+
env_name: 'BUILDKITE_ORGANIZATION',
|
62
62
|
description: 'The Buildkite organization that contains your pipeline',
|
63
63
|
type: String
|
64
64
|
),
|
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.
|
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-
|
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
|