fix daily snapshot for 2.x (#18123)

This commit is contained in:
Gary Verhaegen 2024-01-10 12:39:55 +01:00 committed by GitHub
parent 2a77ae5d0d
commit e67f988baf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -15,8 +15,9 @@ jobs:
pool:
name: macOS-pool
demands: assignment -equals ${{parameters.assignment}}
condition: or(eq('${{parameters.name}}', 'macos'),
eq(variables['Build.SourceBranchName'], 'main'))
condition: and(succeeded(),
or(eq('${{parameters.name}}', 'macos'),
eq(variables['Build.SourceBranchName'], 'main')))
variables:
- name: release_sha
value: $[ dependencies.check_for_release.outputs['out.release_sha'] ]

View File

@ -102,7 +102,7 @@ fi
commit_belongs_to_release_branch() {
git branch --all --format='%(refname:short)' --contains="$1" \
| grep -q -E '^origin/(main$|release/)'
| grep -q -E '^origin/(main$|main-2\.x$|release/)'
}
case $1 in