From e9d2d21ab240f561ebaed2943f1e04cc9cf831c4 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sun, 19 Mar 2023 16:37:09 +0900 Subject: [PATCH] Improve error message on invalid tag ref --- CHANGELOG.md | 2 ++ main.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a2c10b..8b4f528 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com ## [Unreleased] +- Diagnostics improvements. + ## [1.6.2] - 2022-12-24 - Support self-hosted runner that does not set `GITHUB_OUTPUT` environment variable. ([#17](https://github.com/taiki-e/create-gh-release-action/pull/17)) diff --git a/main.sh b/main.sh index 81573f9..9bf9480 100755 --- a/main.sh +++ b/main.sh @@ -40,7 +40,7 @@ if [[ -z "${token}" ]]; then fi if [[ "${ref}" != "refs/tags/"* ]]; then - bail "tag ref should start with 'refs/tags/': '${ref}'" + bail "tag ref should start with 'refs/tags/': '${ref}'; this action only supports events from tag or release by default; see for more" fi tag="${ref#refs/tags/}"