Skip to content

Commit

Permalink
Add test for cancel by name (#40)
Browse files Browse the repository at this point in the history
Add a test for #39 and update docs
  • Loading branch information
styfle committed Oct 24, 2020
1 parent f2dc220 commit eb15220
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
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

0 comments on commit eb15220

Please sign in to comment.