Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ jobs:
cancel:
runs-on: ubuntu-latest
name: Cancel
timeout-minutes: 3
timeout-minutes: 4
steps:
# To use this repository's private action, you must check out the repository
- name: Checkout
uses: actions/checkout@v2
- name: Test Step
uses: ./ # Uses an action in the root directory
with:
workflow_id: 479426, 830809
workflow_id: 479426, 830809, sleep120.yml
access_token: ${{ github.token }}
11 changes: 11 additions & 0 deletions .github/workflows/sleep120.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Sleep120

on: [push]

jobs:
task:
runs-on: ubuntu-latest
name: Task
steps:
- uses: actions/setup-node@v1
- run: echo 'Sleeping...'; sleep 120; echo 'Done.';
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ jobs:
access_token: ${{ github.token }}
```

_Note_: `workflow_id` accepts a comma separated list of IDs.
- _Note_: `workflow_id` can be a Workflow ID (number) or Workflow File Name (string)
- _Note_: `workflow_id` also accepts a comma separated list if you need to cancel multiple workflows

At the time of writing `0.5.0` is the latest release but you can select any [release](https://github.com/styfle/cancel-workflow-action/releases).

Expand Down