From 86f4f592ae38a56cbba3803f1e7f051fc609aa49 Mon Sep 17 00:00:00 2001 From: firelemons Date: Thu, 3 Feb 2022 21:31:28 -0600 Subject: [PATCH] fix reference error --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 1bb3105..df573a2 100644 --- a/index.js +++ b/index.js @@ -1,9 +1,9 @@ const core = require('@actions/core'); const github = require('@actions/github'); +const token = core.getInput('token'); const octokit = github.getOctokit(token); // Javascript destructuring assignment. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment const {owner, repo} = github.context.repo -const token = core.getInput('token'); // Determines if an object is an object // @param {any} variable The object to check