Skip to content

Commit

Permalink
chore: add a warning to docs about missing version (#184)
Browse files Browse the repository at this point in the history
The whole readme doesn't mention that usages like `uses:
styfle/cancel-workflow-action` without a version would cause an error
like "the `uses' attribute must be a path, a Docker image, or
owner/repo@ref". I think it might be better to add a warning to help
someone like me.
  • Loading branch information
chenxsan authored Nov 4, 2022
1 parent de53429 commit c27121f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ Notice there is no `v` prefix, just the `@major.minor.patch` version.

Visit [Releases](https://github.com/styfle/cancel-workflow-action/releases) to find the latest version at the top of the page.

> **Warning**
>
> You might run into "the `uses' attribute must be a path, a Docker image, or owner/repo@ref" error if you don't specify a version.

### Advanced: Canceling Other Workflows

In some cases, you may wish to avoid modifying all your workflows and instead create a new workflow that cancels your other workflows. This can be useful when you have a problem with workflows getting queued.
Expand Down

0 comments on commit c27121f

Please sign in to comment.