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 6197947 commit 579e10fCopy full SHA for 579e10f
1 file changed
.github/workflows/update-submodule.yml
@@ -44,8 +44,8 @@ jobs:
44
OLD_HASH: ${{ steps.submodule-old.outputs.hash }}
45
SUBMODULE_PATH: ${{ steps.submodule-old.outputs.path }}
46
run: |
47
- $line = (git submodule status --recursive | Select-Object -First 1).Trim()
48
- $newHash = ($line -split '\s+')[0].TrimStart('-','+')
+ $treeLine = (git ls-tree HEAD -- $env:SUBMODULE_PATH).Trim()
+ $newHash = ($treeLine -split '\s+')[2]
49
50
$repoUrl = (git -C $env:SUBMODULE_PATH config --get remote.origin.url).Trim()
51
if ($repoUrl -match '^git@github\.com:(.+)\.git$') {
0 commit comments