github / vscode-github-actions

GitHub Actions extension for VS Code
https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-github-actions
MIT License
475 stars 72 forks source link

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

Closed xiang-zhu-pr closed 10 months ago

xiang-zhu-pr commented 10 months ago

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 ?