[英]remote: Repository not found. GitHub Action
I am currently developing pipelines using GitHub action and in this process I am trying to push code from the template branch of repos A to the dev branch of repos B using a GitHub Action workflow.我目前正在使用 GitHub 操作开发管道,在此过程中,我尝试使用 GitHub 操作工作流将代码从存储库 A 的模板分支推送到存储库 B 的开发分支。
For this, I used the following code:为此,我使用了以下代码:
git config user.email "${{ github.event.inputs.email }}"
git config user.name "${{ github.event.inputs.user }}"
git remote -v
git remote add origin2 https://${{ github.event.inputs.TOKEN }}@github.com/${{ github.event.inputs.org }}/${{ github.event.inputs.repos }}.git
git remote -v
git pull
git checkout template
git push -f origin2 template:${{ env.dev }}
As you can see I fully parameterize the code to make it dynamic.如您所见,我将代码完全参数化以使其动态化。
The problem is that once this code is executed, the GitHub Action console gives me the following error:问题是,一旦执行此代码,GitHub Action 控制台就会出现以下错误:
The snowflakeTestRepos
repository does however exist in the samyKheznadji
organization.然而, snowflakeTestRepos
存储库确实存在于samyKheznadji
组织中。
I don't understand why it doesn't work knowing that when I run it locally it works.我不明白为什么它不工作知道当我在本地运行它时它工作。
Thanks for your help:)谢谢你的帮助:)
I tried to create the remote origin2 with a Personal Access Token with full access.我尝试使用具有完全访问权限的个人访问令牌创建远程 origin2。 The repository is private.存储库是私有的。
I am sure your token is invalid.我确定您的令牌无效。
There are the posibilities:有以下几种可能:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.