forked from mirrors/action-gh-release
Add tag_name option (#39)
Allow setting tag name like actions/create-release.
This commit is contained in:
parent
b7e450da2a
commit
9f4852ebe6
7 changed files with 18 additions and 7 deletions
|
@ -142,7 +142,8 @@ export const release = async (
|
|||
releaser: Releaser
|
||||
): Promise<Release> => {
|
||||
const [owner, repo] = config.github_repository.split("/");
|
||||
const tag = config.github_ref.replace("refs/tags/", "");
|
||||
const tag =
|
||||
config.input_tag_name || config.github_ref.replace("refs/tags/", "");
|
||||
try {
|
||||
// you can't get a an existing draft by tag
|
||||
// so we must find one in the list of all releases
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue