Skip to content

Commit

Permalink
Update updateDependencies.ps1
Browse files Browse the repository at this point in the history
removing PWSH transforms that messes up version displays
  • Loading branch information
dkontyko authored Nov 10, 2023
1 parent 6dcaf35 commit 8d68eb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/resources/updateDependencies.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ $mavenDisplayDependenciesCmd = "mvn versions:display-dependency-updates -Dproces
$output = Invoke-Expression $mavenDisplayDependenciesCmd

# Parse the output to find any updated dependencies
$updatedDependencies = ($output | Select-String " -> " | ForEach-Object { $_.Line -replace " -> ", "" })
$updatedDependencies = ($output | Select-String " -> ")

# If there are no updated dependencies, exit the script
if ($updatedDependencies.Count -eq 0) {
Expand All @@ -32,4 +32,4 @@ git push -u origin $branchName
# Create a pull request to merge the changes into the main branch
$prTitle = "Update dependencies"
$prBody = "This pull request updates the following dependencies:`n`n$($updatedDependencies -join "`n")"
gh pr create --title $prTitle --body $prBody --base main --head $branchName --assignee dkontyko
gh pr create --title $prTitle --body $prBody --base main --head $branchName --assignee dkontyko

0 comments on commit 8d68eb3

Please sign in to comment.