dotnet-installer/eng/common/templates-official/steps/build-reason.yml
dotnet-maestro[bot] c0add199d9 Update dependencies from https://github.com/dotnet/arcade build 20240301.4
Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.CMake.Sdk
 From Version 8.0.0-beta.24123.1 -> To Version 8.0.0-beta.24151.4
2024-03-02 14:00:28 +00:00

12 lines
528 B
YAML

# 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 }}