Reputation: 16837
I'm currently doing this:
if: failure() && (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/mybranch')
But we're using git flow (much to my chagrin).
How could I check if the branch name contains a specific pattern?
Something like this:
if: failure() && ( !(github.ref ~= 'feature/*' )
Upvotes: 5
Views: 4925
Reputation: 16837
contains
appears to be as good as it gets
if: failure() && !contains( github.ref, 'feature' )
Upvotes: 6