gha_config 0.22 → 0.23.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/gha_config/version.rb +1 -1
- data/lib/gha_config/writer.rb +11 -9
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a40dd08d619080435933f18a3af9755deb248e9e5b61154363c6c0025d34825
|
4
|
+
data.tar.gz: 92b641b92ef4a8df9abf3f02b516bba5f7e0e5faeb3513076774fbe1b52fb043
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13ca7b74a37c167c2d43eec550d10c46e9bc24d996a24cfbdc65bc959a6d237e1c112609a007d5bf5205bbc5a9d8d33bf2161a9bae5f3f08192534c359a84d81
|
7
|
+
data.tar.gz: 388225ab6e85ab7e7c038c8ac0a06179eb0a0bab757e525a0c3367cdcd568ad1466f44e836fa753dc768f064a4a7b177f238873e890e3e18d44132c09f4731ea
|
data/Gemfile.lock
CHANGED
data/lib/gha_config/version.rb
CHANGED
data/lib/gha_config/writer.rb
CHANGED
@@ -54,17 +54,19 @@ module GhaConfig
|
|
54
54
|
flipp_global['with']['enable_ssh'] = true
|
55
55
|
end
|
56
56
|
job['steps'].unshift(flipp_global)
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
if config.options['use_submodules']
|
62
|
-
checkout['with'] = {
|
63
|
-
'token' => "${{ secrets.FLIPPCIRCLECIPULLER_REPO_TOKEN }}",
|
64
|
-
'submodules' => 'recursive'
|
57
|
+
unless job['steps'].any? { |s| s['uses'] == 'actions/checkout@v2'}
|
58
|
+
checkout = {
|
59
|
+
'name' => 'Checkout code',
|
60
|
+
'uses' => 'actions/checkout@v2'
|
65
61
|
}
|
62
|
+
if config.options['use_submodules']
|
63
|
+
checkout['with'] = {
|
64
|
+
'token' => "${{ secrets.FLIPPCIRCLECIPULLER_REPO_TOKEN }}",
|
65
|
+
'submodules' => 'recursive'
|
66
|
+
}
|
67
|
+
end
|
68
|
+
job['steps'].unshift(checkout)
|
66
69
|
end
|
67
|
-
job['steps'].unshift(checkout)
|
68
70
|
job['needs'] = "[#{job['needs'].join(', ')}]" if job['needs'].is_a?(Array)
|
69
71
|
new_job.merge!(job)
|
70
72
|
output_hash['jobs'][name] = new_job
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gha_config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.23.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Orner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -61,9 +61,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
61
61
|
version: '2.3'
|
62
62
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
63
|
requirements:
|
64
|
-
- - "
|
64
|
+
- - ">"
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version:
|
66
|
+
version: 1.3.1
|
67
67
|
requirements: []
|
68
68
|
rubygems_version: 3.2.21
|
69
69
|
signing_key:
|