Skip to content

Commit

Permalink
Support official branches that start with releases/ (#501)
Browse files Browse the repository at this point in the history
<!-- Thank you for submitting a Pull Request. If you're new to
contributing to BCApps please read our pull request guideline below
* https://github.com/microsoft/BCApps/Contributing.md
-->
#### Summary <!-- Provide a general summary of your changes -->
Support official branches that start with releases/.

Note: Fix for AL-Go to support releases/ is at
microsoft/AL-Go#877

#### Work Item(s) <!-- Add the issue number here after the #. The issue
needs to be open and approved. Submitting PRs with no linked issues or
unapproved issues is highly discouraged. -->
Fixes
[AB#437073](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/437073)
  • Loading branch information
mazhelez authored Jan 25, 2024
1 parent 20e3e1c commit fd71d86
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/AL-Go-Settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@
],
"CICDPushBranches": [
"main",
"release/*"
"releases/*"
],
"CICDPullRequestBranches": [
"main",
"release/*",
"releases/*",
"features/*"
],
"enableCodeCop": true,
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/UpdateBCArtifactVersion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
id: GetBranches
run: |
git fetch
$branches = @(git for-each-ref --format="'%(refname:short)'" refs/remotes/origin/release/ | % { $_ -replace 'origin/', '' })
$branches = @(git for-each-ref --format="'%(refname:short)'" refs/remotes/origin/releases/ | % { $_ -replace 'origin/', '' })
$branches += "'main'"
$branchMatrix = "[$($branches -join ',')]"
Write-Host "Updating branches: $branchMatrix"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/UpdatePackageVersions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
id: GetBranches
run: |
git fetch
$branches = @(git for-each-ref --format="'%(refname:short)'" refs/remotes/origin/release/ | % { $_ -replace 'origin/', '' })
$branches = @(git for-each-ref --format="'%(refname:short)'" refs/remotes/origin/releases/ | % { $_ -replace 'origin/', '' })
$branches += "'main'"
$branchMatrix = "[$($branches -join ',')]"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/powershell.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ name: PSScriptAnalyzer

on:
push:
branches: [ "main", "release/*" ]
branches: [ "main", "releases/*" ]
pull_request:
branches: [ "main", "release/*" ]
branches: [ "main", "releases/*" ]

permissions:
contents: read
Expand Down

0 comments on commit fd71d86

Please sign in to comment.