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

Commit 9655608

Browse files
committed
Another fix
1 parent 579e10f commit 9655608

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

.github/workflows/update-submodule.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Update OrchardCoreContrib.App Submodules
1+
name: Update OrchardCoreContrib.App Submodules
22

33
on:
44
push:
@@ -24,10 +24,8 @@ jobs:
2424
$line = (git submodule status --recursive | Select-Object -First 1).Trim()
2525
$parts = $line -split '\s+'
2626
$path = $parts[1]
27-
28-
$treeLine = (git ls-tree HEAD -- $path).Trim()
29-
$oldHash = ($treeLine -split '\s+')[2]
30-
27+
$oldHash = (git -C $path rev-parse HEAD).Trim()
28+
3129
"hash=$oldHash" >> $env:GITHUB_OUTPUT
3230
"path=$path" >> $env:GITHUB_OUTPUT
3331
@@ -44,8 +42,7 @@ jobs:
4442
OLD_HASH: ${{ steps.submodule-old.outputs.hash }}
4543
SUBMODULE_PATH: ${{ steps.submodule-old.outputs.path }}
4644
run: |
47-
$treeLine = (git ls-tree HEAD -- $env:SUBMODULE_PATH).Trim()
48-
$newHash = ($treeLine -split '\s+')[2]
45+
$newHash = (git -C $env:SUBMODULE_PATH rev-parse HEAD).Trim()
4946
5047
$repoUrl = (git -C $env:SUBMODULE_PATH config --get remote.origin.url).Trim()
5148
if ($repoUrl -match '^git@github\.com:(.+)\.git$') {

0 commit comments

Comments
 (0)