From c9cf5bbf3b19a6112c221055721ffd6fe2b2cfa9 Mon Sep 17 00:00:00 2001 From: Peter Grainger Date: Thu, 19 Sep 2019 14:18:16 +0100 Subject: [PATCH] update branch name and add logging --- dist/index.js | 6 +++--- src/main.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/index.js b/dist/index.js index 8c04bdd..998c5cc 100644 --- a/dist/index.js +++ b/dist/index.js @@ -723,9 +723,9 @@ const create_branch_1 = __webpack_require__(515); function run() { return __awaiter(this, void 0, void 0, function* () { try { - const myInput = core.getInput('branch'); - yield create_branch_1.createBranch(github_1.GitHub, github_1.context, myInput); - core.debug(`Hello ${myInput}`); + const branch = core.getInput('branch'); + core.debug(`Creating branch ${branch}`); + yield create_branch_1.createBranch(github_1.GitHub, github_1.context, branch); } catch (error) { core.setFailed(error.message); diff --git a/src/main.ts b/src/main.ts index b7dcba5..3576db3 100644 --- a/src/main.ts +++ b/src/main.ts @@ -4,9 +4,9 @@ import { createBranch } from './create-branch'; async function run() { try { - const myInput = core.getInput('branch'); - await createBranch(GitHub, context, myInput) - core.debug(`Hello ${myInput}`); + const branch = core.getInput('branch'); + core.debug(`Creating branch ${branch}`); + await createBranch(GitHub, context, branch) } catch (error) { core.setFailed(error.message); }