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

Same problem here, not sure why the documentation is not aligned… if you found out the solution let me know
thanks

This is working for me. Please review your configuration.


did not trigger a notification, while

did.

Screen Shot 2020-08-05 at 10.49.28

Imprint