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

Commit 6197947

Browse files
committed
Fix old commit
1 parent 60f2812 commit 6197947

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/update-submodule.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@ jobs:
2424
$line = (git submodule status --recursive | Select-Object -First 1).Trim()
2525
$parts = $line -split '\s+'
2626
$path = $parts[1]
27-
$hash = (git rev-parse HEAD:$path)
28-
"hash=$hash" >> $env:GITHUB_OUTPUT
27+
28+
$treeLine = (git ls-tree HEAD -- $path).Trim()
29+
$oldHash = ($treeLine -split '\s+')[2]
30+
31+
"hash=$oldHash" >> $env:GITHUB_OUTPUT
2932
"path=$path" >> $env:GITHUB_OUTPUT
3033

3134
- name: Update submodules

0 commit comments

Comments
 (0)