Skip to content

Commit 7d030a5

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

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

azure-pipelines.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,8 @@ steps:
5050
displayName: Publish
5151
condition: and(
5252
succeeded(),
53-
or(
54-
startsWith(variables['Build.SourceBranch'], 'refs/tags/'),
55-
eq(variables['Build.SourceBranch'], 'refs/heads/main')
56-
),
57-
or(
58-
eq(variables['Agent.OS'], 'Linux'),
59-
eq(variables['Agent.OS'], 'MacOS')
60-
)
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'))
6155
)
6256
env:
6357
VSCE_PAT: $(VSCE_PAT)

0 commit comments

Comments
 (0)