debug workflow
This commit is contained in:
parent
e60d11aee8
commit
7ab8811117
12
lib/main.js
12
lib/main.js
@ -9,10 +9,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
||||
});
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const core_1 = require("@actions/core");
|
||||
const github_1 = require("@actions/github");
|
||||
const util_1 = require("./util");
|
||||
const github_2 = require("./github");
|
||||
const github_1 = require("./github");
|
||||
const core_1 = require("@actions/core");
|
||||
const github_2 = require("@actions/github");
|
||||
function run() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
try {
|
||||
@ -20,11 +20,11 @@ function run() {
|
||||
if (!util_1.isTag(config.github_ref)) {
|
||||
throw new Error(`⚠️ GitHub Releases requires a tag`);
|
||||
}
|
||||
const gh = new github_1.GitHub(config.github_token);
|
||||
let rel = yield github_2.release(config, gh);
|
||||
const gh = new github_2.GitHub(config.github_token);
|
||||
let rel = yield github_1.release(config, gh);
|
||||
if (config.input_files) {
|
||||
util_1.paths(config.input_files).forEach((path) => __awaiter(this, void 0, void 0, function* () {
|
||||
yield github_2.upload(gh, rel.upload_url, path);
|
||||
yield github_1.upload(gh, rel.upload_url, path);
|
||||
}));
|
||||
}
|
||||
console.log(`🎉 Release ready at ${rel.html_url}`);
|
||||
|
@ -1,7 +1,8 @@
|
||||
import { setFailed } from '@actions/core';
|
||||
import { GitHub } from '@actions/github';
|
||||
|
||||
import { paths, parseConfig, isTag } from './util';
|
||||
import { release, upload } from './github';
|
||||
import { setFailed } from '@actions/core';
|
||||
import { GitHub } from '@actions/github';
|
||||
|
||||
async function run() {
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user