diff --git a/action.yml b/action.yml index e41a82d..0e355de 100644 --- a/action.yml +++ b/action.yml @@ -1,15 +1,5 @@ name: 'Owners Slash Command' description: 'Check OWNERS before running a slash command' -inputs: - command: - description: 'the command being run' - required: true - executor: - description: 'the person running the command' - required: true -outputs: - can-run: - description: 'pass/fail for if user can run the command' runs: - using: 'node16' - main: 'index.js' + using: 'node12' + main: 'dist/index.js' diff --git a/index.js b/index.js index b008710..562bbc2 100644 --- a/index.js +++ b/index.js @@ -3,7 +3,6 @@ const github = require('@actions/github'); const {getUserIsApprover} = require('./lib/helpers'); try { - const command = core.getInput('command'); const actor = github.context.actor; return getUserIsApprover(actor, '.'); } catch (error) {