Gitlab CI.gitlab-ci.yml only checks for specific branches

How can I get Gitlab CI to track only two specific branches?

I have a very simple script:

master: script: "npm install; grunt" 

this is something like:

 master: script: "npm install; grunt" only: - master 
+4
source share
2 answers

Right, you can see an example here

+1
source

Just in case, if someone else has a period in the name of the branch. Our branch is called "1.0", so we needed

  only: - /1.0/ 
+1
source

All Articles