fix: submodule deletion with sign-commits (#4473)

* Fix submodule deletion with `sign-commits`

* Unstale the staleness
This commit is contained in:
Finn Evers authored and GitHub committed 2026-11-06 11:14:42 +00:00
1 parent 3afad46a91
commit 15733dbdfe
3 files changed
+126 -4

No files matched your search

+5 -2
View File
@@ -332,11 +332,14 @@ export class GitHubHelper {
commit.changes.map(async ({path, mode, status, dstSha}) => {
if (mode === '160000') {
// submodule
core.info(`Creating tree object for submodule commit at '${path}'`)
core.info(
`Creating tree object for submodule commit at '${path}' with status '${status}'`
)
return <TreeObject>{
path,
mode,
sha: dstSha,
// A deleted submodule has a null dstSha; a null sha deletes the entry
sha: status === 'D' ? null : dstSha,
type: 'commit'
}
} else {