Skip to content

Commit 8ae396d

Browse files
committed
(maint) auto disable provision_service
1 parent 5cf5ae4 commit 8ae396d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

exe/matrix_from_metadata_v3

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,9 @@ default_options = {
104104
begin
105105
Action.init
106106

107-
# hidden argument to setup puppetlabs org defaults
108-
default_options[:'provision-exclude'] = 'provision_service' if ARGV.reject! { |x| x == '--puppetlabs' }.nil?
107+
# default disable provision_service if puppetlabs is not the owner
108+
default_options[:'provision-exclude'] = 'provision_service' \
109+
if ARGV.reject! { |x| x == '--puppetlabs' }.nil? && !['puppetlabs'].include?(ENV.fetch('GITHUB_REPOSITORY_OWNER', nil))
109110

110111
# apply default_options if not overridden on the command line
111112
default_options.each do |arg, value|

0 commit comments

Comments
 (0)