feat(inputs): add option to disable the post action

This commit is contained in:
Vincent Le Goff 2025-07-28 15:23:38 +02:00
parent 8edcb1bdb4
commit e7667abffb
No known key found for this signature in database
GPG key ID: 3A8C7592BECB15C3
3 changed files with 15 additions and 0 deletions

View file

@ -30,6 +30,12 @@ async function run(): Promise<void> {
}
async function cleanup(): Promise<void> {
const sourceSettings = await inputHelper.getInputs()
if (sourceSettings.skipCleanup) {
return
}
try {
await gitSourceProvider.cleanup(stateHelper.RepositoryPath)
} catch (error) {