Skip to content

Commit c9cf5bb

Browse files
author
Peter Grainger
committed
update branch name and add logging
1 parent 94671d1 commit c9cf5bb

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

dist/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -723,9 +723,9 @@ const create_branch_1 = __webpack_require__(515);
723723
function run() {
724724
return __awaiter(this, void 0, void 0, function* () {
725725
try {
726-
const myInput = core.getInput('branch');
727-
yield create_branch_1.createBranch(github_1.GitHub, github_1.context, myInput);
728-
core.debug(`Hello ${myInput}`);
726+
const branch = core.getInput('branch');
727+
core.debug(`Creating branch ${branch}`);
728+
yield create_branch_1.createBranch(github_1.GitHub, github_1.context, branch);
729729
}
730730
catch (error) {
731731
core.setFailed(error.message);

src/main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import { createBranch } from './create-branch';
44

55
async function run() {
66
try {
7-
const myInput = core.getInput('branch');
8-
await createBranch(GitHub, context, myInput)
9-
core.debug(`Hello ${myInput}`);
7+
const branch = core.getInput('branch');
8+
core.debug(`Creating branch ${branch}`);
9+
await createBranch(GitHub, context, branch)
1010
} catch (error) {
1111
core.setFailed(error.message);
1212
}

0 commit comments

Comments
 (0)