We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60f2812 commit 6197947Copy full SHA for 6197947
1 file changed
.github/workflows/update-submodule.yml
@@ -24,8 +24,11 @@ jobs:
24
$line = (git submodule status --recursive | Select-Object -First 1).Trim()
25
$parts = $line -split '\s+'
26
$path = $parts[1]
27
- $hash = (git rev-parse HEAD:$path)
28
- "hash=$hash" >> $env:GITHUB_OUTPUT
+
+ $treeLine = (git ls-tree HEAD -- $path).Trim()
29
+ $oldHash = ($treeLine -split '\s+')[2]
30
31
+ "hash=$oldHash" >> $env:GITHUB_OUTPUT
32
"path=$path" >> $env:GITHUB_OUTPUT
33
34
- name: Update submodules
0 commit comments