Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
benc-uk committed Oct 28, 2022
2 parents 2a6e8ed + 1fd7876 commit b8ac400
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -567,10 +567,10 @@ function run() {
core.info(`🏃 Workflow Dispatch Action v${PackageJSON.version}`);
try {
// Required inputs
const token = core.getInput('token');
const workflowRef = core.getInput('workflow');
// Optional inputs, with defaults
const ref = core.getInput('ref') || github.context.ref;
const token = core.getInput('token');
const ref = core.getInput('ref');
const [owner, repo] = core.getInput('repo')
? core.getInput('repo').split('/')
: [github.context.repo.owner, github.context.repo.repo];
Expand All @@ -582,7 +582,6 @@ function run() {
}
// Get octokit client for making API calls
const octokit = github.getOctokit(token);
octokit.graphql;
// List workflows via API, and handle paginated results
const workflows = yield octokit.paginate(octokit.rest.actions.listRepoWorkflows.endpoint.merge({ owner, repo, ref, inputs }));
// Debug response if ACTIONS_STEP_DEBUG is enabled
Expand Down

0 comments on commit b8ac400

Please sign in to comment.