Skip to content

Make 'chainloop workflow create --name build --project xy --team abc' idempotent #1206

Closed
@habnux

Description

@habnux

Today, the CLI returns RC=1 if the workflow already exists for the specified name and project. In the interest of automation, it makes sense that this does not fail. However, a warning could still be displayed.

chainloop workflow create --name build --project xy --team abc
ERR failed to create workflow: rpc error: code = InvalidArgument desc = validation error: name already taken
echo $?
1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions