Skip to content

Commit

Permalink
#72: Artifactless propagation performance optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
iignatevich committed Jan 23, 2025
1 parent 8b35dc1 commit f2f1a13
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ action:
description: Parse playbooks and propagate used resources only
type: boolean
default: true
- name: hide-progress
title: Hide progress
description: Don't draw progress bars (true if log level above 0)
type: boolean
default: false
- name: commits-after
title: Commits after
description: Use commits only after specific date
Expand Down
8 changes: 4 additions & 4 deletions plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ func (p *Plugin) DiscoverActions(_ context.Context) ([]*action.Action, error) {
vaultpass := input.Opt("vault-pass").(string)
last := input.Opt("last").(bool)

showProgress := false
if launchr.Log().Level() == 0 {
showProgress = true
hideProgress := input.Opt("hide-progress").(bool)
if launchr.Log().Level() > 0 {
hideProgress = true
}

if !doSync {
Expand All @@ -77,7 +77,7 @@ func (p *Plugin) DiscoverActions(_ context.Context) ([]*action.Action, error) {
commitsAfter: commitsAfter,
allowOverride: allowOverride,
vaultPass: vaultpass,
showProgress: showProgress,
showProgress: !hideProgress,
}

err := syncAction.Execute()
Expand Down

0 comments on commit f2f1a13

Please sign in to comment.