merge drafts workaround. fixes #14

This commit is contained in:
softprops 2019-09-16 23:51:16 +09:00
parent e2bd814f0a
commit 9f9f2a3ed2
2 changed files with 79 additions and 6 deletions

View file

@ -1,5 +1,5 @@
import { paths, parseConfig, isTag } from "./util";
import { release, upload } from "./github";
import { release, upload, GitHubReleaseer } from "./github";
import { setFailed } from "@actions/core";
import { GitHub } from "@actions/github";
import { env } from "process";
@ -11,7 +11,7 @@ async function run() {
throw new Error(`⚠️ GitHub Releases requires a tag`);
}
const gh = new GitHub(config.github_token);
let rel = await release(config, gh);
let rel = await release(config, new GitHubReleaseer(gh));
if (config.input_files) {
paths(config.input_files).forEach(async path => {
await upload(gh, rel.upload_url, path);