Just realized that Drone supports wildcards in branch
within a when
clause but only if the wildcard is after some text. This works:
when:
branch: [drone/*]
but this doesn’t
when:
branch: [*/drone]
Just realized that Drone supports wildcards in branch
within a when
clause but only if the wildcard is after some text. This works:
when:
branch: [drone/*]
but this doesn’t
when:
branch: [*/drone]
I believe *
is a special character in yaml. You’ll need to quote the branch if it starts with a wildcard.
when:
branch: ['*/drone']
This also works if you only have the one pattern.
when:
branch: '*/drone'