Skip to content

Commit

Permalink
(maint) auto disable provision_service
Browse files Browse the repository at this point in the history
  • Loading branch information
h0tw1r3 committed May 7, 2024
1 parent a9886f3 commit aa18224
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions exe/matrix_from_metadata_v3
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,9 @@ default_options = {
begin
Action.init

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

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

0 comments on commit aa18224

Please sign in to comment.