canonical / action-build

A Github action for building Snapcraft projects
MIT License
42 stars 22 forks source link

When action used twice, `.outputs.snap` gives the path to the first build instead of the second build #84

Open sed-i opened 4 weeks ago

sed-i commented 4 weeks ago

I have a workflow where I use action-build and action-publish twice in a row.

From the logs of a CI failure I can see that the second time I build the snap, it is building the right thing (Packed nushell_0.99.0_amd64.snap), but when I used the .outpus.snap value to run the snap or when the publish action attempts to publish it, it is using the previously built snap:

nushell 0.99.0-1-g9d25b2f29 installed
Publishing snap "nushell_0.99.0-1-g9d25b2f29_amd64.snap"...

It seems like consecutive calls to the action do not overwrite previous values..?