Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
Allow trigger update to update workspace/project/app target
Browse files Browse the repository at this point in the history
  • Loading branch information
briancain committed Dec 16, 2021
1 parent ab19845 commit 67b965b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/cli/trigger_apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ func (c *TriggerApplyCommand) Run(args []string) int {
}

// Trigger target
if diffTrigger.Workspace != nil {
if diffTrigger.Workspace != nil && c.flagWorkspace == "" {
c.flagWorkspace = diffTrigger.Workspace.Workspace
}
if diffTrigger.Project != nil {
if diffTrigger.Project != nil && c.flagProject == "" {
c.flagProject = diffTrigger.Project.Project
}
if diffTrigger.Application != nil {
if diffTrigger.Application != nil && c.flagApp == "" {
c.flagApp = diffTrigger.Application.Application
}
}
Expand Down

0 comments on commit 67b965b

Please sign in to comment.