Fix a thing

This commit is contained in:
mitchellhamilton
2019-08-14 20:43:06 +10:00
parent 4a62d21cd0
commit 09a34b3d67
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -31,6 +31,7 @@ async function execWithOutput(command: string, args?: string[]) {
core.setFailed("Please add the GITHUB_TOKEN to the changesets action");
return;
}
let repo = `${github.context.repo.owner}/${github.context.repo.repo}`;
const octokit = new github.GitHub(githubToken);
@@ -65,8 +66,6 @@ async function execWithOutput(command: string, args?: string[]) {
`machine github.com\nlogin github-actions[bot]\npassword ${githubToken}`
);
let repo = `${github.context.repo.owner}/${github.context.repo.repo}`;
let defaultBranch = await defaultBranchPromise;
if (github.context.ref !== defaultBranch) {
core.setFailed(