Skip to content

Is there a way to do conditionnal publishing? #1172

Closed Answered by mikhail-tokarev
jimmydjabali asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

you should have different workflows for release and development pipelines. If you need extra security you can add a script to check that workflow is triggered for master branch

scripts:
    - if [ "$CM_BRANCH" != "master" ]; then exit 1; fi

or similar in post-clone script if you use Workflow Editor

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dtrdic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants