Skip to content

Commit 47198f2

Browse files
authored
Merge pull request UiPath#38 from UiPath/fix/improve_commitlint
ci: run commitlint job only for merge branches
2 parents 3f85d83 + 2580e12 commit 47198f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

azure-pipelines.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
node index.js
1414
workingDirectory: .build/commitlint
1515
displayName: 'Linting Commits'
16-
condition: eq(variables['GIT_BRANCH'], 'merge')
16+
condition: eq(variables['Build.SourceBranchName'], 'merge')
1717

1818
- job: Test
1919
pool :
@@ -26,7 +26,7 @@ jobs:
2626
codeCoverage: 'true'
2727
dependsOn:
2828
- CommitLint
29-
condition: succeeded('CommitLint')
29+
condition: or(ne(variables['Build.SourceBranchName'], 'merge'), succeeded('CommitLint'))
3030

3131
- job: Build
3232
pool :
@@ -43,7 +43,7 @@ jobs:
4343
condition: succeeded()
4444
dependsOn:
4545
- CommitLint
46-
condition: succeeded('CommitLint')
46+
condition: or(ne(variables['Build.SourceBranchName'], 'merge'), succeeded('CommitLint'))
4747

4848
- job: Documentation
4949
pool :

0 commit comments

Comments
 (0)