Skip to content

No github repository found. Please open a folder that contains github repository #256

@xiang-zhu-pr

Description

@xiang-zhu-pr

Describe the bug
Hello,

I have 2 github.com accounts (perso and pro).
In order to use both under the same linux bash, I use the method described here.

# Personal GitHub account
Host github.com
 HostName github.com
 User git
 AddKeysToAgent yes
 UseKeychain yes
 IdentityFile ~/.ssh/id_rsa
# Work GitHub account
Host github.com-work
 HostName github.com
 User git
 AddKeysToAgent yes
 UseKeychain yes
 IdentityFile ~/.ssh/work_rsa

When I am in the repo under the perso account (Host github.com), github actions is good too.
git remote add origin git@github.com:[my work GitHub group]/[my project].git

But when I am in the repo under the work account (Host github.com-work), github actions throws the error No github repository found. Please open a folder that contains github repository
git remote add origin git@github.com-work:[my work GitHub group]/[my project].git

I would like to know is this error expected as github actions doesnt support the format github.com-work ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done 💤

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions