adding owner/repo options for remote releasing
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user