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.
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.