Skip to content

Commit 4c656bb

Browse files
authored
Disable cancellation by default (#93)
1 parent b68a254 commit 4c656bb

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,8 @@ Sometimes, there are workflows that you do not want to run twice at the same tim
2929
Therefore, `skip-duplicate-actions` provides the following options to skip a workflow-run if the same workflow is already running:
3030

3131
- **Always skip:** This is useful if you have a workflow that you never want to run twice at the same time.
32-
In contrast to the [cancel_others](#cancel-outdated-workflow-runs) option, this option allows older runs to finish.
3332
- **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.
3433
- **Only skip outdated runs:** For example, this can be useful for skip-checks that are not at the beginning of a job.
35-
In contrast to the [cancel_others](#cancel-outdated-workflow-runs) option, this option skips at pre-defined places instead of cancelling at arbitrary places.
3634
- **Never skip:** This disables the concurrent skipping functionality, but still lets you use all other options like duplicate skipping.
3735

3836
## Skip ignored paths
@@ -86,7 +84,7 @@ Default `[]`.
8684

8785
### `cancel_others`
8886

89-
If true, then workflow-runs from outdated commits will be cancelled. Default `true`.
87+
If true, then workflow-runs from outdated commits will be cancelled. Default `false`.
9088

9189
### `skip_after_successful_duplicate`
9290

action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ inputs:
2020
cancel_others:
2121
description: 'If true, then workflow-runs from outdated commits will be cancelled'
2222
required: false
23-
default: 'true'
23+
default: 'false'
2424
skip_after_successful_duplicate:
2525
description: 'If true, skip if an already finished duplicate run can be found'
2626
required: false

dist/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9972,7 +9972,7 @@ async function main() {
99729972
core.warning(`Failed to fetch the required workflow information`);
99739973
exitSuccess({ shouldSkip: false });
99749974
}
9975-
const cancelOthers = getBooleanInput('cancel_others', true);
9975+
const cancelOthers = getBooleanInput('cancel_others', false);
99769976
if (cancelOthers) {
99779977
await cancelOutdatedRuns(context);
99789978
}

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ async function main() {
137137
exitSuccess({shouldSkip: false});
138138
}
139139

140-
const cancelOthers = getBooleanInput('cancel_others', true);
140+
const cancelOthers = getBooleanInput('cancel_others', false);
141141
if (cancelOthers) {
142142
await cancelOutdatedRuns(context);
143143
}

0 commit comments

Comments
 (0)