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

Commit 6dda088

Browse files
committed
Update PR title
1 parent 75dbb96 commit 6dda088

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/update-submodule.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,21 @@ jobs:
2323
git submodule update --init --recursive
2424
git submodule update --recursive --remote
2525
26+
- name: Get updated submodule commit hash
27+
id: submodule-hash
28+
shell: pwsh
29+
run: |
30+
$line = (git submodule status --recursive | Select-Object -First 1).Trim()
31+
$hash = ($line -split '\s+')[0].TrimStart('-','+')
32+
$shortHash = $hash.Substring(0,7)
33+
"short=$shortHash" >> $env:GITHUB_OUTPUT
34+
2635
- name: Create Pull Request
2736
uses: peter-evans/create-pull-request@v7
2837
with:
2938
token: ${{ secrets.OCC_TOKEN }}
3039
commit-message: Update submodules to latest versions
31-
title: Update submodules to latest versions 🔄
40+
title: Update OCC.Library submodule to commit ${{ steps.submodule-hash.outputs.short }}
3241
body: |
3342
Automated submodule update generated by workflow.
3443
branch: update-submodules

0 commit comments

Comments
 (0)