From 55842cab61dc7aa2edcf843d958bea1aac1520fb Mon Sep 17 00:00:00 2001 From: Sam Chen Date: Mon, 10 Oct 2022 19:14:13 +0800 Subject: [PATCH] Add a warning about missing version The whole readme doesn't mention that missing 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. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 2744bc5c..435a11c7 100644 --- a/README.md +++ b/README.md @@ -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.