Merge branch 'master' into master

This commit is contained in:
Mike Coutermarsh
2020-07-01 07:26:37 -07:00
committed by GitHub
9 changed files with 467 additions and 333 deletions

View File

@@ -15,10 +15,11 @@ async function run() {
// This removes the 'refs/tags' portion of the string, i.e. from 'refs/tags/v1.10.15' to 'v1.10.15'
const tag = tagName.replace('refs/tags/', '');
const releaseName = core.getInput('release_name', { required: true }).replace('refs/tags/', '');
const releaseName = core.getInput('release_name', { required: false }).replace('refs/tags/', '');
const body = core.getInput('body', { required: false });
const draft = core.getInput('draft', { required: false }) === 'true';
const prerelease = core.getInput('prerelease', { required: false }) === 'true';
const commitish = core.getInput('commitish', { required: false }) || context.sha;
const bodyPath = core.getInput('body_path', { required: false });
let bodyFileContent = null;
@@ -40,7 +41,8 @@ async function run() {
name: releaseName,
body: bodyFileContent || body,
draft,
prerelease
prerelease,
target_commitish: commitish
});
// Get the ID, html_url, and upload URL for the created Release from the response