github - 从 travis 构建修改 github 公共存储库
问题描述
在我的第一个公共存储库https://github.com/yafred/test-push/的构建中,我尝试修改我的第二个存储库https://github.com/yafred/test
1/ 我正在使用与repo
我用于部署版本的范围 (GH_TOKEN) 相同的个人访问令牌。
2/ 我正在执行的命令.travis.yml
是
language: generic
script:
- git clone https://github.com/yafred/test.git
- cd test
- echo "hello" > test.txt
- git add .
- git -c user.name='travis' -c user.email='travis' commit -m refresh
- git push -f -q https://{$GH_TOKEN}@github.com/yafred/test master
我根据搜索尝试了一些命令变体,但我不断收到身份验证错误
0K$ git push -f -q https://{$GH_TOKEN}@github.com/yafred/test master
remote: Invalid username or password.
fatal: Authentication failed for 'https://{[secure]}@github.com/yafred/test/'
有可能吗?我究竟做错了什么 ?
解决方案
推荐阅读
- apache-spark - 如何查看数据框所有列的类型
- sql - 尝试在 SQL Server 2016 中传递逗号分隔值时出错
- python - 程序未输出预期结果(python)
- intellij-idea - 依赖来自 Kotlin Gradle DSL 文件 build.gradle.kts 的外部项目
- reactjs - 反向framework7页面转换
- github - Debain/Composer 无法连接到 github(443 和 22)
- kubernetes - istio 是否可以通过 uri 路径的动态部分支持到不同服务的路由
- c# - 如何检查 TCP 缓冲区是否已满
- javascript - 我可以将#ID 列表合并到一个类中吗?
- android - 在android应用程序中扩展底部工作表对话框