Skip to content

Commit

Permalink
Try ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
kpgalligan committed Dec 26, 2023
1 parent 7708a63 commit 39498d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@ import simpleGit from "simple-git";
*/
export async function run(): Promise<void> {
try {
const username: string = core.getInput('username')
const pat: string = core.getInput('pat')
const git = simpleGit();

Check failure on line 10 in src/main.ts

View workflow job for this annotation

GitHub Actions / Lint Codebase

Delete `;`

Check failure on line 10 in src/main.ts

View workflow job for this annotation

GitHub Actions / Lint Codebase

Extra semicolon

//git subtree push --prefix subtreeDirectory https://github.com/newfivefour/vimrc.git master

Check failure on line 12 in src/main.ts

View workflow job for this annotation

GitHub Actions / Lint Codebase

Insert `····`

await git.raw("subtree", "push", "--prefix", "kmp", `https://${username}:${pat}@github.com/kpgalligan/SharedKotlin.git`, "testbranch")
await git.raw("subtree", "push", "--prefix", "kmp", `git@github.com:kpgalligan/SharedKotlin.git`, "testbranch")

Check failure on line 14 in src/main.ts

View workflow job for this annotation

GitHub Actions / Lint Codebase

Replace `"subtree",·"push",·"--prefix",·"kmp",·`[email protected]:kpgalligan/SharedKotlin.git`,·"testbranch"` with `⏎······'subtree',⏎······'push',⏎······'--prefix',⏎······'kmp',⏎······`[email protected]:kpgalligan/SharedKotlin.git`,⏎······'testbranch'⏎····`
} catch (error) {
// Fail the workflow run if an error occurs
if (error instanceof Error) core.setFailed(error.message)
Expand Down

0 comments on commit 39498d3

Please sign in to comment.