Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
fix: install preset name fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aslafy-z committed Dec 31, 2019
1 parent e6ad5e0 commit de6e0cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ async function run() {
let contextName = core.getInput('context-name');
let successState = core.getInput('success-state');
let failureState = core.getInput('failure-state');
const installPreset = core.getInput('preset');
const requirePreset = npa(installPreset).name;
const installPresetPackage = core.getInput('preset');
const requirePresetPackage = npa(installPresetPackage).name;

const client = new github.GitHub(process.env.GITHUB_TOKEN);

Expand All @@ -26,8 +26,8 @@ async function run() {

let error = null;
try {
await installPreset(installPreset);
await validateTitle(requirePreset, contextPullRequest.title);
await installPreset(installPresetPackage);
await validateTitle(requirePresetPackage, contextPullRequest.title);
} catch (err) {
error = err;
}
Expand Down

0 comments on commit de6e0cf

Please sign in to comment.