1
0
Fork 0
mirror of https://code.forgejo.org/actions/checkout.git synced 2025-08-12 00:34:51 +02:00

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) {