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:
parent
8edcb1bdb4
commit
e7667abffb
3 changed files with 15 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue