env:
global:
- OFFICIAL_REPO_SLUG="DanySK/conrec"
jobs:
include:
- stage: deploy
if: type != pull_request AND repo = env(OFFICIAL_REPO_SLUG)
As you can see, the deploy job does not get scheduled.
Now look at this build of the same project, relevant part:
env:
global:
- OFFICIAL_REPO_SLUG="DanySK/conrec"
jobs:
include:
- stage: deploy
if: type != pull_request AND repo = DanySK/conrec
as you can see, the deploy job now gets correctly scheduled, but I would have expected the two specs to be identical. Any hint on what is going on here?
Unable to evaluate condition (no implicit conversion of nil into String)
It was working before, when the condition was global, and indeed the docs say:
Also, environment variables from your build configuration ( .travis.yml ) and repository settings are available, and can be matched using env(FOO) , see below.