Skip to content

Commit

Permalink
move mark synced above silence
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljguarino committed Aug 28, 2023
1 parent 3c165e4 commit b23621e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/plural/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,10 @@ func (p *Plural) deploy(c *cli.Context) error {
return fmt.Errorf("The %s was unistalled, run `plural bundle install %s <bundle-name>` ", repo, repo)
}

if err := p.Client.MarkSynced(repo); err != nil {
utils.Warn("failed to mark %s as synced, this is not a critical error but might drift state in our api, you can run `plural repos synced %s` to mark it manually", repo, repo)
}

if c.Bool("silence") {
continue
}
Expand All @@ -236,10 +240,6 @@ func (p *Plural) deploy(c *cli.Context) error {
if err := scaffold.Notes(installation); err != nil {
return err
}

if err := p.Client.MarkSynced(repo); err != nil {
utils.Warn("failed to mark %s as synced, this is not a critical error but might drift state in our api, you can run `plural repos synced %s` to mark it manually", repo, repo)
}
}

utils.Highlight("\n==> Commit and push your changes to record your deployment\n\n")
Expand Down

0 comments on commit b23621e

Please sign in to comment.