diff --git a/README.md b/README.md index 297c9a6..96959af 100644 --- a/README.md +++ b/README.md @@ -29,10 +29,8 @@ Sometimes, there are workflows that you do not want to run twice at the same tim Therefore, `skip-duplicate-actions` provides the following options to skip a workflow-run if the same workflow is already running: - **Always skip:** This is useful if you have a workflow that you never want to run twice at the same time. - In contrast to the [cancel_others](#cancel-outdated-workflow-runs) option, this option allows older runs to finish. - **Only skip same content:** For example, this can be useful if a workflow has both a `push` and a `pull_request` trigger, or if you push a tag right after pushing a commit. - **Only skip outdated runs:** For example, this can be useful for skip-checks that are not at the beginning of a job. - In contrast to the [cancel_others](#cancel-outdated-workflow-runs) option, this option skips at pre-defined places instead of cancelling at arbitrary places. - **Never skip:** This disables the concurrent skipping functionality, but still lets you use all other options like duplicate skipping. ## Skip ignored paths @@ -86,7 +84,7 @@ Default `[]`. ### `cancel_others` -If true, then workflow-runs from outdated commits will be cancelled. Default `true`. +If true, then workflow-runs from outdated commits will be cancelled. Default `false`. ### `skip_after_successful_duplicate` diff --git a/action.yml b/action.yml index 330bec7..79fb350 100644 --- a/action.yml +++ b/action.yml @@ -20,7 +20,7 @@ inputs: cancel_others: description: 'If true, then workflow-runs from outdated commits will be cancelled' required: false - default: 'true' + default: 'false' skip_after_successful_duplicate: description: 'If true, skip if an already finished duplicate run can be found' required: false diff --git a/dist/index.js b/dist/index.js index 5091d06..0a0c81d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -9972,7 +9972,7 @@ async function main() { core.warning(`Failed to fetch the required workflow information`); exitSuccess({ shouldSkip: false }); } - const cancelOthers = getBooleanInput('cancel_others', true); + const cancelOthers = getBooleanInput('cancel_others', false); if (cancelOthers) { await cancelOutdatedRuns(context); } diff --git a/src/index.ts b/src/index.ts index df2c27d..d07c1b1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -137,7 +137,7 @@ async function main() { exitSuccess({shouldSkip: false}); } - const cancelOthers = getBooleanInput('cancel_others', true); + const cancelOthers = getBooleanInput('cancel_others', false); if (cancelOthers) { await cancelOutdatedRuns(context); }