Skip to content

Commit e9260dc

Browse files
committed
Work CI-CD
- Improve conditions in yaml. ***NO_CI***
1 parent 618453f commit e9260dc

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

azure-pipelines.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,20 @@ jobs:
4545
displayName: Evaluate build options
4646
4747
- task: DotNetCoreCLI@2
48+
displayName: Install NBGV tool
49+
condition: >-
50+
or(
51+
eq(variables['StartReleaseCandidate'], true),
52+
ne(variables['system.pullrequest.isfork'], true)
53+
)
4854
inputs:
4955
command: custom
5056
custom: tool
5157
arguments: install -g nbgv
52-
condition: or( eq( variables['StartReleaseCandidate'], true ), ne(variables['system.pullrequest.isfork'], true) )
53-
displayName: Install NBGV tool
5458

5559
- task: PowerShell@2
60+
condition: eq( variables['StartReleaseCandidate'], true )
61+
displayName: NBGV prepare release
5662
inputs:
5763
targetType: 'inline'
5864
script: |
@@ -120,8 +126,6 @@ jobs:
120126
}
121127
workingDirectory: $(Agent.TempDirectory)
122128
ignoreLASTEXITCODE: true
123-
condition: eq( variables['StartReleaseCandidate'], true )
124-
displayName: NBGV prepare release
125129

126130
###########################################################
127131
# build tool

0 commit comments

Comments
 (0)