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

Commit 579e10f

Browse files
committed
Fix
1 parent 6197947 commit 579e10f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/update-submodule.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ jobs:
4444
OLD_HASH: ${{ steps.submodule-old.outputs.hash }}
4545
SUBMODULE_PATH: ${{ steps.submodule-old.outputs.path }}
4646
run: |
47-
$line = (git submodule status --recursive | Select-Object -First 1).Trim()
48-
$newHash = ($line -split '\s+')[0].TrimStart('-','+')
47+
$treeLine = (git ls-tree HEAD -- $env:SUBMODULE_PATH).Trim()
48+
$newHash = ($treeLine -split '\s+')[2]
4949
5050
$repoUrl = (git -C $env:SUBMODULE_PATH config --get remote.origin.url).Trim()
5151
if ($repoUrl -match '^git@github\.com:(.+)\.git$') {

0 commit comments

Comments
 (0)