Skip to content

how to configure to run whole cirrus.yml tasks on master only (no executions on PRs) #1269

Answered by fkorotkov
romani asked this question in Q&A
Discussion options

You must be logged in to vote

You can put the following only_if statement in your .cirrus.yml:

# .cirrus.yml

only_if: $CIRRUS_BRANCH == $CIRRUS_DEFAULT_BRANCH

task1:
  ...

task2:
  ...

This way you'll pnly run tasks on the default branch (either master or main depending on your settings).

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@romani
Comment options

@fkorotkov
Comment options

@romani
Comment options

@fkorotkov
Comment options

@romani
Comment options

Answer selected by romani
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