Skip to content

Commit a76b06d

Browse files
authored
fix(cli): allow updating only the contract description (#633)
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
1 parent 8b5418e commit a76b06d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/cli/cmd/workflow_contract_update.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ func newWorkflowContractUpdateCmd() *cobra.Command {
2929
Use: "update",
3030
Short: "Update an existing contract",
3131
PreRunE: func(cmd *cobra.Command, args []string) error {
32-
if contractPath == "" && name == "" {
33-
return errors.New("at least the name or the new contract revision must be provided")
32+
if contractPath == "" && name == "" && description == "" {
33+
return errors.New("no updates provided")
3434
}
3535
return nil
3636
},

0 commit comments

Comments
 (0)