adding owner/repo options for remote releasing

This commit is contained in:
Chris McIntosh
2020-09-11 16:28:30 -05:00
parent 1e92f6fc66
commit 818a8f0696
4 changed files with 14 additions and 3 deletions

View File

@@ -8,7 +8,7 @@ async function run() {
const github = new GitHub(process.env.GITHUB_TOKEN);
// Get owner and repo from context of payload that triggered the action
const { owner, repo } = context.repo;
const { owner: currentOwner, repo: currentRepo } = context.repo;
// Get the inputs from the workflow file: https://github.com/actions/toolkit/tree/master/packages/core#inputsoutputs
const tagName = core.getInput('tag_name', { required: true });
@@ -22,6 +22,8 @@ async function run() {
const commitish = core.getInput('commitish', { required: false }) || context.sha;
const bodyPath = core.getInput('body_path', { required: false });
const owner = core.getInput('owner', { required: false }) || currentOwner;
const repo = core.getInput('repo', { required: false }) || currentRepo;
let bodyFileContent = null;
if (bodyPath !== '' && !!bodyPath) {
try {