Skip to content

Commit 4d21982

Browse files
CopilotDRSDavidSoft
andcommitted
Fix trailing spaces in vendor workflow YAML
Co-authored-by: DRSDavidSoft <[email protected]>
1 parent be60888 commit 4d21982

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

.github/workflows/vendor.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ jobs:
5151
$oldVersion = ($currentVersion | Where-Object {$_.name -eq $s.name}).version
5252
if ($s.version -ne $oldVersion) {
5353
$repoUrl = ($repoUrl = $s.Url.Replace("/archive/", "/releases/")).Substring(0, $repoUrl.IndexOf("/releases/")) + "/releases"
54-
54+
5555
# Determine change type and emoji
5656
$changeType = "unknown"
5757
$emoji = "🔄"
5858
try {
5959
$oldVer = [System.Version]::Parse($oldVersion.Split('-')[0])
6060
$newVer = [System.Version]::Parse($s.version.Split('-')[0])
61-
61+
6262
if ($newVer.Major -gt $oldVer.Major) {
6363
$changeType = "major"
6464
$emoji = "⚠️"
@@ -73,7 +73,7 @@ jobs:
7373
$changeType = "unknown"
7474
$emoji = "🔄"
7575
}
76-
76+
7777
$listUpdated += "$($s.name) v$($s.version), "
7878
$updateMessage += "| $emoji **[$($s.name)]($repoUrl)** | \`$oldVersion\` | \`$($s.version)\` | $changeType |`n"
7979
}
@@ -99,7 +99,7 @@ jobs:
9999
echo "" >> $env:GITHUB_STEP_SUMMARY
100100
echo "$env:UPDATE_MESSAGE" >> $env:GITHUB_STEP_SUMMARY
101101
echo "" >> $env:GITHUB_STEP_SUMMARY
102-
102+
103103
# Check if we can auto-merge (only minor/patch changes)
104104
$hasBreaking = $env:HAS_BREAKING_CHANGES -eq 'True'
105105
if ($hasBreaking) {
@@ -117,22 +117,22 @@ jobs:
117117
echo "### 🚀 Auto-merging Updates" >> $env:GITHUB_STEP_SUMMARY
118118
echo "" >> $env:GITHUB_STEP_SUMMARY
119119
echo "Attempting to automatically merge non-breaking changes to master..." >> $env:GITHUB_STEP_SUMMARY
120-
120+
121121
git config --global user.name "github-actions[bot]"
122122
git config --global user.email "github-actions[bot]@users.noreply.github.com"
123-
123+
124124
# Commit the changes
125125
git add vendor/sources.json
126126
git commit -m "⬆️ Update dependencies ($env:LIST_UPDATED)"
127-
127+
128128
# Push directly to master
129129
git push origin HEAD:master
130-
130+
131131
echo "" >> $env:GITHUB_STEP_SUMMARY
132132
echo "✅ **Success!** Updates have been automatically merged to master." >> $env:GITHUB_STEP_SUMMARY
133133
echo "" >> $env:GITHUB_STEP_SUMMARY
134134
echo "**Updated dependencies:** $env:LIST_UPDATED" >> $env:GITHUB_STEP_SUMMARY
135-
135+
136136
# Set a flag to skip PR creation
137137
echo "AUTO_MERGED=true" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
138138
} catch {
@@ -142,12 +142,12 @@ jobs:
142142
echo "**Error:** $($_.Exception.Message)" >> $env:GITHUB_STEP_SUMMARY
143143
echo "" >> $env:GITHUB_STEP_SUMMARY
144144
echo "Falling back to creating a pull request..." >> $env:GITHUB_STEP_SUMMARY
145-
145+
146146
Write-Warning "Failed to auto-merge: $($_.Exception.Message)"
147-
147+
148148
# Reset changes so PR creation can work
149149
git reset --hard HEAD~1
150-
150+
151151
# Set flag to create PR instead
152152
echo "AUTO_MERGED=false" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
153153
}
@@ -158,13 +158,13 @@ jobs:
158158
title: ${{ env.COUNT_UPDATED == '1' && format('⬆️ Update {0}', env.LIST_UPDATED) || format('⬆️ Update {0} vendored dependencies', env.COUNT_UPDATED) }}
159159
body: |
160160
### ${{ env.COUNT_UPDATED == '1' && '📦 Automatically updated 1 dependency' || format('📦 Automatically updated {0} dependencies', env.COUNT_UPDATED) }}
161-
161+
162162
${{ env.UPDATE_MESSAGE }}
163-
163+
164164
---
165-
165+
166166
${{ env.HAS_BREAKING_CHANGES == 'True' && '⚠️ **This update contains major version changes that may include breaking changes.**' || 'ℹ️ This update only contains minor or patch changes.' }}
167-
167+
168168
Please verify and then **Merge** the pull request to apply the updates.
169169
commit-message: '⬆️ Update dependencies (${{ env.LIST_UPDATED }})'
170170
branch: update-vendor

0 commit comments

Comments
 (0)