Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR this time #591

Draft
wants to merge 13 commits into
base: devops/exclude-docs-folder
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 31 additions & 17 deletions build/azure-pipelines.yml → build/azure-pipelines-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,26 +35,40 @@ stages:
- checkout: self
fetchDepth: 0
- script: |
echo "##vso[task.setvariable variable=SOURCE_BRANCH]$(Build.SourceBranch)"
echo "##vso[task.setvariable variable=TARGET_BRANCH]$(System.PullRequest.TargetBranch)"
echo "build source name: $(Build.Repository.Name)"
echo "build source ref: $(Build.SourceBranch)"
echo "build source version: $(Build.SourceVersion)"
echo "PR source branch: $(System.PullRequest.SourceBranch)"
echo "PR target branch: $(System.PullRequest.TargetBranch)"
- powershell: |
echo "##[group]Checking for changes outside docs folder"
# Check if we are in a PR build or normal branch build
if [ "$(System.PullRequest.SourceBranch)" != "" ]; then
# PR build: compare source branch with target branch (e.g., main)
git fetch origin $(System.PullRequest.TargetBranch)
CHANGED_FILES=$(git diff --name-only origin/$(System.PullRequest.TargetBranch) $(System.PullRequest.SourceBranch))
else
# Branch build: compare current commit with previous commit
git fetch origin $(Build.SourceBranch) --depth=2
CHANGED_FILES=$(git diff --name-only HEAD^1 HEAD)
fi
if ($env:System_PullRequest_SourceBranch -ne "") {
# PR build: compare source branch with target branch (e.g., main)
$CHANGED_FILES = git diff --name-only origin/$env:TARGET_BRANCH
echo "Checking changes between $env:TARGET_BRANCH and $env:SOURCE_BRANCH results in the following files: $CHANGED_FILES"
} else {
# Branch build: compare current commit with previous commit
git fetch origin $env:Build_SourceBranch --depth=2
$CHANGED_FILES = git diff --name-only HEAD~1 HEAD
}

$skipBuildStage = $true

# Check if any files outside the /docs/ folder changed
if echo "$CHANGED_FILES" | grep -v '^docs/'; then
echo "##[endgroup]"
echo "##vso[task.setvariable variable=skipBuildStage]false"
else
echo "##[endgroup]"
echo "##vso[task.setvariable variable=skipBuildStage]true"
fi
foreach ($file in $CHANGED_FILES) {
if ($file -notmatch '^docs/') {
$skipBuildStage = $false
break
}
}

if ($skipBuildStage) {
echo "##vso[task.setvariable variable=skipBuildStage]true"
} else {
echo "##vso[task.setvariable variable=skipBuildStage]false"
}
displayName: 'Check if non-docs files were changed'
- powershell: |
if ($(skipBuildStage) -eq 'true') {
Expand Down
1 change: 1 addition & 0 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Getting started with the Firely SDK CQL repository
another test edit
test edit.
PR this time

The repository consists of two parts:
* `Cql/` - the main body of code that produces the CQL engine itself, plus the PackagerCLI
Expand Down