Condition not taken into consideration on slack notifications config

Hello all, i added this condition to my travis.yml, the alert display on slack channel on all branches and not only on master branch

 slack:
 if: branch = master
   rooms:
     - <account>:<token>

If this is the exact formatting of your configuration, I would point out that if is on the same level as slack. Please review


which tells you that if is one level below slack.

1 Like

Thanks @BanzaiMan, I updated the code and it still doesn’t work

  slack:
    if: branch = "master"
    rooms:
      - abct:q6IX9D3F8cd
Imprint