You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-20Lines changed: 20 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -2,35 +2,35 @@
2
2
3
3
`skip-duplicate-actions` provides the following features to optimize GitHub Actions:
4
4
5
-
-[Skip duplicate workflow-runs](#skip-duplicate-workflow-runs) after merges, pull requests or similar.
6
-
-[Skip concurrent or parallel workflow-runs](#skip-concurrent-workflow-runs) for things that you do not want to run twice.
5
+
-[Skip duplicate workflowruns](#skip-duplicate-workflow-runs) after merges, pull requests or similar.
6
+
-[Skip concurrent or parallel workflowruns](#skip-concurrent-workflow-runs) for things that you do not want to run twice.
7
7
-[Skip ignored paths](#skip-ignored-paths) to speedup documentation-changes or similar.
8
8
-[Skip if paths not changed](#skip-if-paths-not-changed) for something like directory-specific tests.
9
-
-[Cancel outdated workflow-runs](#cancel-outdated-workflow-runs) after branch-pushes.
9
+
-[Cancel outdated workflowruns](#cancel-outdated-workflow-runs) after branch-pushes.
10
10
11
11
All of those features help to save time and costs; especially for long-running workflows.
12
12
You can choose any subset of those features.
13
13
14
-
## Skip duplicate workflow-runs
14
+
## Skip duplicate workflowruns
15
15
16
-
If you work with feature branches, then you might see lots of _duplicate workflow-runs_.
17
-
For example, duplicate workflow-runs can happen if a workflow runs on a feature branch, but then the workflow is repeated right after merging the feature branch.
16
+
If you work with feature branches, then you might see lots of _duplicate workflowruns_.
17
+
For example, duplicate workflowruns can happen if a workflow run is performed on a feature branch, but then the workflow run is repeated right after merging the feature branch.
18
18
`skip-duplicate-actions` allows to prevent such runs.
19
19
20
20
-**Full traceability:** After clean merges, you will see a message like `Skip execution because the exact same files have been successfully checked in <previous_run_URL>`.
21
21
-**Fully configurable:** By default, manual triggers and cron will never be skipped.
22
22
-**Flexible Git usage:**`skip-duplicate-actions` does not care whether you use fast-forward-merges, rebase-merges or squash-merges.
23
-
However, if a merge yields a result that is different from the source branch, then the resulting workflow-run will _not_ be skipped.
23
+
However, if a merge yields a result that is different from the source branch, then the resulting workflowrun will _not_ be skipped.
24
24
This is commonly the case if you merge "outdated branches".
25
25
26
-
## Skip concurrent workflow-runs
26
+
## Skip concurrent workflowruns
27
27
28
28
Sometimes, there are workflows that you do not want to run twice at the same time even if they are triggered twice.
29
-
Therefore, `skip-duplicate-actions` provides the following options to skip a workflow-run if the same workflow is already running:
29
+
Therefore, `skip-duplicate-actions` provides the following options to skip a workflowrun if the same workflow is already running:
30
30
31
31
-**Always skip:** This is useful if you have a workflow that you never want to run twice at the same time.
32
32
-**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.
33
-
(*Deprecated*, use `same_content_newer` instead)
33
+
(_Deprecated_, use `same_content_newer` instead)
34
34
-**Only skip newer runs with the same content:** If the same workflow is running on the exact same content, skip newer runs of it. `same_content_newer` ensures that at least one of those workflows will run, while `same_content` may skip all of them.
35
35
-**Only skip outdated runs:** For example, this can be useful for skip-checks that are not at the beginning of a job.
36
36
-**Never skip:** This disables the concurrent skipping functionality, but still lets you use all other options like duplicate skipping.
@@ -64,12 +64,12 @@ Instead of blindly skipping checks, the backtracking-algorithm will only skip so
64
64
65
65
You can use the [`paths_filter`](#paths_filter) option if you need to define multiple `paths` patterns in a single workflow.
66
66
67
-
## Cancel outdated workflow-runs
67
+
## Cancel outdated workflowruns
68
68
69
69
Typically, workflows should only run for the most recent commit.
70
-
Therefore, when you push changes to a branch, `skip-duplicate-actions` can be configured to cancel any previous workflow-runs that run against outdated commits.
70
+
Therefore, when you push changes to a branch, `skip-duplicate-actions` can be configured to cancel any previous workflowruns that run against outdated commits.
71
71
72
-
-**Full traceability:** If a workflow-run is cancelled, then you will see a message like `Cancelled <previous_run_URL>`.
72
+
-**Full traceability:** If a workflowrun is cancelled, then you will see a message like `Cancelled <previous_run_URL>`.
73
73
-**Guaranteed execution:** The cancellation-algorithm guarantees that a complete check-set will finish no matter what.
74
74
75
75
## Inputs
@@ -121,7 +121,7 @@ See the corresponding [`paths_result`](#paths_result) output and [example config
121
121
122
122
### `cancel_others`
123
123
124
-
If true, then workflow-runs from outdated commits will be cancelled.
124
+
If true, then workflowruns from outdated commits will be cancelled.
125
125
126
126
**Default:** `'false'`
127
127
@@ -141,7 +141,7 @@ Possible values are `pull_request`, `push`, `workflow_dispatch`, `schedule`.
141
141
142
142
### `concurrent_skipping`
143
143
144
-
Skip a workflow-run if the same workflow is already running.
144
+
Skip a workflowrun if the same workflow is already running.
145
145
146
146
One of `never`, `same_content`, `same_content_newer`, `outdated_runs`, `always`.
147
147
@@ -334,12 +334,12 @@ jobs:
334
334
335
335
## How does it work?
336
336
337
-
`skip-duplicate-actions`uses the [Workflow Runs API](https://docs.github.com/en/rest/reference/actions#workflow-runs) to query workflow-runs.
338
-
`skip-duplicate-actions`will only look at workflow-runs that belong to the same workflow as the current workflow-run.
339
-
After querying such workflow-runs, it will compare them with the current workflow-run as follows:
337
+
`skip-duplicate-actions`uses the [Workflow Runs API](https://docs.github.com/en/rest/reference/actions#workflow-runs) to query workflowruns.
338
+
`skip-duplicate-actions`will only look at workflowruns that belong to the same workflow as the current workflowrun.
339
+
After querying such workflowruns, it will compare them with the current workflowrun as follows:
340
340
341
-
- If there exists a workflow-runs with the same tree hash, then we have identified a duplicate workflow-run.
342
-
- If there exists an in-progress workflow-run, then we can cancel it or skip, depending on your configuration.
341
+
- If there exists a workflow run with the same tree hash, then we have identified a duplicate workflowrun.
342
+
- If there exists an in-progress workflowrun, then we can cancel it or skip, depending on your configuration.
0 commit comments