mirror of
https://github.com/changesets/action
synced 2026-10-26 16:39:56 +08:00
Fix a thing
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user