mirror of
https://github.com/softprops/action-gh-release.git
synced 2025-06-28 14:16:02 +00:00
Merge 68929c86ba
into b7e450da2a
This commit is contained in:
commit
0102d59fde
3 changed files with 4 additions and 4 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "action-gh-release",
|
"name": "action-gh-release",
|
||||||
"version": "0.1.4",
|
"version": "0.1.5",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -7,7 +7,7 @@ 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