This repository was archived by the owner on Jun 26, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Update OrchardCoreContrib.App Submodules
1+ name : Update OrchardCoreContrib.App Submodules
22
33on :
44 push :
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
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$') {
You can’t perform that action at this time.
0 commit comments