Skip to content
This repository was archived by the owner on Jun 26, 2026. It is now read-only.

Commit a2f2315

Browse files
committed
Fix
1 parent ca9fbe6 commit a2f2315

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/update-submodule.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@ jobs:
2323
run: |
2424
$line = (git submodule status --recursive | Select-Object -First 1).Trim()
2525
$parts = $line -split '\s+'
26-
$oldHash = $parts[0].TrimStart('-', '+', 'U')
26+
$hash = $parts[0].TrimStart('-','+')
2727
$path = $parts[1]
28-
29-
"hash=$oldHash" >> $env:GITHUB_OUTPUT
28+
"hash=$hash" >> $env:GITHUB_OUTPUT
3029
"path=$path" >> $env:GITHUB_OUTPUT
3130
3231
- name: Update submodules
@@ -43,8 +42,7 @@ jobs:
4342
SUBMODULE_PATH: ${{ steps.submodule-old.outputs.path }}
4443
run: |
4544
$line = (git submodule status --recursive | Select-Object -First 1).Trim()
46-
$parts = $line -split '\s+'
47-
$newHash = $parts[0].TrimStart('-', '+', 'U')
45+
$newHash = ($line -split '\s+')[0].TrimStart('-','+')
4846
4947
$repoUrl = (git -C $env:SUBMODULE_PATH config --get remote.origin.url).Trim()
5048
if ($repoUrl -match '^git@github\.com:(.+)\.git$') {

0 commit comments

Comments
 (0)