travis-ci / travis-conditions

Boolean language for conditional builds, stages, jobs
MIT License
20 stars 4 forks source link

Add concat #3

Closed svenfuchs closed 6 years ago

svenfuchs commented 6 years ago

As per https://github.com/travis-ci/travis-conditions/pull/1#issuecomment-397258759

The intention with this is:

env: SERVICE=some-service
if: branch =~ concat(^srv-,env(SERVICE),-) # equivalent to branch =~ ^srv-some-service-

I think this is a valid usecase, so I'm proposing to add this.