Skip to content

Commit 72e0dc5

Browse files
committed
testing out different syntax formatting for condition value in yaml
1 parent 7d030a5 commit 72e0dc5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

azure-pipelines.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ steps:
4848
echo ">>> Publish"
4949
npm run deploy
5050
displayName: Publish
51-
condition: and(
52-
succeeded(),
53-
or(startsWith(variables['Build.SourceBranch'], 'refs/tags/'), eq(variables['Build.SourceBranch'], 'refs/heads/main')),
54-
or(eq(variables['Agent.OS'], 'Linux'), eq(variables['Agent.OS'], 'MacOS'))
55-
)
51+
condition: and(succeeded(), or(startsWith(variables['Build.SourceBranch'], 'refs/tags/'), eq(variables['Build.SourceBranch'], 'refs/heads/main')), or(eq(variables['Agent.OS'], 'Linux'), eq(variables['Agent.OS'], 'MacOS')))
5652
env:
5753
VSCE_PAT: $(VSCE_PAT)

0 commit comments

Comments
 (0)