neherlab / pangraph

A bioinformatic toolkit to align genome assemblies into pangenome graphs
https://neherlab.github.io/pangraph
MIT License
87 stars 7 forks source link

chore(ci): ensure branch builds are not cancelled by tag builds #42

Closed ivan-aksamentov closed 1 year ago

ivan-aksamentov commented 1 year ago

Currently build triggered by a push to master is cancelled by the build triggered by followup git tag on the same commit, due to github.ref being the same.

But we want master branch to deploy to :master docker tag, and git tags to be deployed to :lastest, so we need both builds to run.

To solve this, here I add github.ref_type (which can have values tag or branch) to the concurrency.group, such that tag- and branch-triggered builds don't cancel each other.