Skip to content

Commit

Permalink
Merge pull request #1380 from unoplatform/dev/agzi/AdjustmentsForNonD…
Browse files Browse the repository at this point in the history
…ocsOnlyStages

ci: Adjustments for non docs only stages
  • Loading branch information
agneszitte authored Apr 4, 2024
2 parents 52f8081 + c52a47e commit aab5b0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ stages:
displayName: Packages
dependsOn: Determine_Changes
# Don't trigger this stage if only docs files are changed
condition: eq(dependencies.Determine_Changes.outputs['evaluate_changes.DetermineChanges.nonDocsOnly'], 'true')
condition: ne(dependencies.Determine_Changes.outputs['evaluate_changes.DetermineChanges.docsOnly'], 'true')
jobs:
- template: build/stage-build-packages.yml

- stage: Build_Samples
displayName: Build Samples
dependsOn: Determine_Changes
# Don't trigger this stage if only docs files are changed
condition: eq(dependencies.Determine_Changes.outputs['evaluate_changes.DetermineChanges.nonDocsOnly'], 'true')
condition: ne(dependencies.Determine_Changes.outputs['evaluate_changes.DetermineChanges.docsOnly'], 'true')
jobs:
- template: build/stage-build-ios.yml
- template: build/stage-build-android.yml
Expand Down
4 changes: 4 additions & 0 deletions build/stage-determine-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ jobs:
}
foreach ($file in $changedFiles -split "`n") {
# Identifying changes as documentation if they occur:
# Within the doc folder, or
# Are Markdown files at the root level (with no subdirectories involved), or
# Are Markdown files within the .github folder (including its subdirectories)
$isDoc = $file.StartsWith("doc/") -or ($file -match "^[^/]+\.md$") -or ($file -match "^\.github/.*\.md$")
if ($isDoc) {
Expand Down

0 comments on commit aab5b0d

Please sign in to comment.