【发布时间】:2019-10-29 05:45:06
【问题描述】:
如果我在本地更改我的main.workflow 文件,而不是在master 分支中,提交并推送更改,我会从push 命令收到此错误:
> git diff
diff --git a/.github/main.workflow b/.github/main.workflow
index 135d8ea..0a13a28 100644
--- a/.github/main.workflow
+++ b/.github/main.workflow
@@ -6,7 +6,7 @@ workflow "Build and Test in PR" {
]
}
-action ".NET Core CLI" {
+action ".NET Core CLI" {
uses = "./.github/net-core/"
args = "test"
}
> git push
! [remote rejected] my-branch -> my-branch (refusing to allow an integration to create or update .github/main.workflow)
error: failed to push some refs to 'https://github.com/my-user-name/my-repo.git'
【问题讨论】:
-
抱歉,无法重现。您是否有机会使用 GitHub Desktop 进行推送?截至目前,它无法处理
main.workflows。 -
@maxheld 问题可能出在 Github 中的存储库设置上。
标签: git github github-actions