如果我在本地更改
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'
main.workflow
文件。 - maxheld