canonical / turtlebot3c-snap

turtlebot3c packaged as a snap.
3 stars 4 forks source link

CI is publishing on latest/beta when a workflow is triggered manually on any branch #53

Open Guillaumebeuzeboc opened 1 month ago

Guillaumebeuzeboc commented 1 month ago

CI is publishing on latest/beta channel when a workflow is triggered manually on any branch.

For example this build: https://github.com/canonical/turtlebot3c-snap/actions/runs/9905364213 was trigger manually from a random branch, and by mistake it published the snap on the Store.

In GH action, there is no real way to differentiate a build triggered manually or by another workflow.

We should only publish on the store when the workflow is triggered manually and that the branch is a "main" one like: noetic-devel, feat/multi-snap etc.