diff --git a/app/git/verify-auth.ts b/app/git/verify-auth.ts index f5472b9..937900d 100644 --- a/app/git/verify-auth.ts +++ b/app/git/verify-auth.ts @@ -1,6 +1,6 @@ import { execCommand } from "./exec" // Help from: https://github.com/semantic-release/semantic-release/blob/971a5e0d16f1a32e117e9ce382a1618c8256d0d9/lib/git.js#L196-L212 -export const verifyAuth = async (branch: string, repositoryUrl: string): Promise => { - await execCommand(`git push --dry-run --no-verify ${repositoryUrl} HEAD:${branch}`, "") +export const verifyAuth = async (repositoryUrl: string): Promise => { + await execCommand(`git push --dry-run --no-verify`, repositoryUrl) } diff --git a/app/index.ts b/app/index.ts index 173097b..0ffeb02 100644 --- a/app/index.ts +++ b/app/index.ts @@ -4,6 +4,6 @@ import * as git from "./git" const input = getInput() const repoUrl = await git.getRepoUrl(input.githubToken) - await git.verifyAuth(input.behindBranchName, repoUrl) + await git.verifyAuth(repoUrl) await git.rebaseSyncBranches(input.behindBranchName, input.aheadBranchName, repoUrl) })()