honor body_path input when provided. fixes #22

This commit is contained in:
softprops 2019-09-29 02:15:58 -04:00
parent 07c8c20669
commit ba42ad9139
4 changed files with 69 additions and 4 deletions

View file

@ -1,5 +1,5 @@
import { GitHub } from "@actions/github";
import { Config } from "./util";
import { Config, releaseBody } from "./util";
import { lstatSync, readFileSync } from "fs";
import { getType } from "mime";
import { basename } from "path";
@ -138,7 +138,7 @@ export const release = async (
try {
const tag_name = tag;
const name = config.input_name || tag;
const body = config.input_body;
const body = releaseBody(config);
const draft = config.input_draft;
const prerelease = config.input_prerelease;
console.log(`👩‍🏭 Creating new GitHub release for tag ${tag_name}...`);