Skip to content
Merged
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
9 changes: 5 additions & 4 deletions .github/workflows/package-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,16 @@ jobs:
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"

git checkout -b $branch
git add -A

if (git diff --cached --quiet) {
$ChangedFilesCount = $(git status --porcelain | Measure-Object | Select-Object -expand Count)
Comment thread
neilr81 marked this conversation as resolved.
if ($ChangedFilesCount -eq 0) {
Write-Host "No changes detected; skipping commit and PR creation."
"has-changes=false" | Out-File -FilePath $env:GITHUB_OUTPUT -Append -Encoding utf8
exit 0
}

git checkout -b $branch
git add -A

git commit -m "chore(automation): update NuGet packages and .NET SDK versions"
if ($LASTEXITCODE -ne 0) {
Write-Error "git commit failed with exit code $LASTEXITCODE."
Expand Down
Loading