You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
528 B
12 lines
528 B
# build-reason.yml
|
|
# Description: runs steps if build.reason condition is valid. conditions is a string of valid build reasons
|
|
# to include steps (',' separated).
|
|
parameters:
|
|
conditions: ''
|
|
steps: []
|
|
|
|
steps:
|
|
- ${{ if and( not(startsWith(parameters.conditions, 'not')), contains(parameters.conditions, variables['build.reason'])) }}:
|
|
- ${{ parameters.steps }}
|
|
- ${{ if and( startsWith(parameters.conditions, 'not'), not(contains(parameters.conditions, variables['build.reason']))) }}:
|
|
- ${{ parameters.steps }}
|
|
|