Skip to content

Commit

Permalink
Merge pull request #353 from freddydk/issue352
Browse files Browse the repository at this point in the history
Create Release cannot find projects for incrementing version number
  • Loading branch information
freddydk committed Jan 13, 2023
2 parents d252bf3 + 5c75147 commit 8972fb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Actions/IncrementVersionNumber/IncrementVersionNumber.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ try {
if (!$project) { $project = '*' }

if ($project -ne '.') {
$projects = @(Get-ChildItem -Path $ENV:GITHUB_WORKSPACE -Directory -Recurse -Depth 2 | Where-Object { Test-Path (Join-Path $_.FullName ".AL-Go/settings.json") -PathType Leaf } | ForEach-Object { $_.FullName.Substring("$ENV:GITHUB_WORKSPACE".length+1) } | Where-Object { $_ -like $project })
$projects = @(Get-ChildItem -Path $repoBaseFolder -Directory -Recurse -Depth 2 | Where-Object { Test-Path (Join-Path $_.FullName ".AL-Go/settings.json") -PathType Leaf } | ForEach-Object { $_.FullName.Substring($repoBaseFolder.length+1) } | Where-Object { $_ -like $project })
if ($projects.Count -eq 0) {
if ($project -eq '*') {
$projects = @( '.' )
Expand Down

0 comments on commit 8972fb9

Please sign in to comment.