Skip to content

Commit 3b7e3bd

Browse files
authored
chore(docs): document the native behavior (#201)
So long, and thanks for all the fish<sup>[1](https://en.wikipedia.org/wiki/So_Long,_and_Thanks_for_All_the_Fish)</sup> - Related to #200 - Closes #191 - Closes #76
1 parent a0540e0 commit 3b7e3bd

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
> **Warning**
2+
> In April 2021, GitHub [announced](https://github.blog/changelog/2021-04-19-github-actions-limit-workflow-run-or-job-concurrency/) native support for canceling workflows.
3+
>
4+
> You probably don't need this custom action. Instead, use the native behavior by adding this to your workflow yaml:
5+
> ```
6+
> concurrency:
7+
> group: ${{ github.workflow }}-${{ github.ref }}
8+
> cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
9+
> ```
10+
> Read the [official documentation](https://docs.github.com/en/actions/using-jobs/using-concurrency) to learn more.
11+
112
# Cancel Workflow Action
213
314
This is a GitHub Action that will cancel any previous runs that are not `completed` for a given workflow.

0 commit comments

Comments
 (0)