Skip to content

How do I run a command only on a specific branch? #432

Answered by mrexox
nottmey asked this question in Q&A
Discussion options

You must be logged in to vote

Well, in that case I'd recommend using something like this

pre-push:
  commands:
    test:
      run: [[ $(git rev-parse --abbrev-ref HEAD) != "main" ]] && true || fvm flutter test

Currently there is no other way to do so 🤔 but you can create a feature request (just create a new issue) and describe how it would be convenient to configure.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nottmey
Comment options

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