mirror of
https://github.com/softprops/action-gh-release.git
synced 2025-06-28 06:16:01 +00:00
simple attempt to handle name input if not a tag push triggered workflow
This commit is contained in:
parent
b7e450da2a
commit
8f19e114db
1 changed files with 2 additions and 2 deletions
|
@ -6,8 +6,8 @@ import { env } from "process";
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
try {
|
try {
|
||||||
const config = parseConfig(env);
|
const config = parseConfig(env);
|
||||||
if (!isTag(config.github_ref)) {
|
if (!isTag(config.github_ref) && !config.input_name) {
|
||||||
throw new Error(`⚠️ GitHub Releases requires a tag`);
|
throw new Error(`⚠️ GitHub Releases requires a tag`);
|
||||||
}
|
}
|
||||||
GitHub.plugin(require("@octokit/plugin-throttling"));
|
GitHub.plugin(require("@octokit/plugin-throttling"));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue