larchliu/Cancel Previous Runs Actions
Cancel previous workflow-runs. Skip duplicate workflow-runs. Skip or ignore specific paths. Cancel outdated workflow-runs.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| github_token | Your GitHub Access Token | yes | ${{ github.token }} |
| paths_ignore | A JSON-array with ignored path patterns, e.g. something like ["**/README.md", "**/docs/**"] | no | [] |
| paths | A JSON-array with path patterns, e.g. something like ["platform-specific/**"] | no | [] |
| cancel_others | If true, then workflow-runs from outdated commits will be cancelled | no | true |
| cancel_previous | If true, then workflow-runs from outdated runs will be cancelled | no | false |
| skip_after_successful_duplicate | If true, skip if an already finished duplicate run can be found | no | true |
| do_not_skip | A JSON-array with triggers that should never be skipped | no | ["workflow_dispatch", "schedule"] |
| do_not_cancel | — | no | ["repository_dispatch"] |
| concurrent_skipping | One of never, same_content, outdated_runs, always | yes | never |
Outputs
| name | description |
|---|---|
| should_skip | true if the current run can be safely skipped. This should be evaluated for either individual steps or entire jobs. |