Skip to content

Commit

Permalink
update branch name and add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Grainger committed Sep 19, 2019
1 parent 94671d1 commit c9cf5bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit c9cf5bb

Please sign in to comment.