gpt4 book ai didi

github-actions - 依赖机器人:错误:.github#L1 `on` 中未定义事件触发器

转载 作者:行者123 更新时间:2023-12-05 00:52:43 26 4
gpt4 key购买 nike

我正在尝试在 Github 存储库上设置依赖机器人。

这是我的配置文件:

version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
open-pull-requests-limit: 10

我收到以下错误:

Annotations
1 error
Error : .github#L1
No event triggers defined in `on`

This error can occur in case of parsing error .但我从 an example in the docs 的复制粘贴中改编了这个文件.另外,我用验证工具验证了yaml文件。

知道我做错了什么吗?

最佳答案

GitHub 将 dependabot.yml 解析为操作文件,因为我把它放在 .github/workflows/ 中是错误的。

应该是.github/dependabot.yml

关于github-actions - 依赖机器人:错误:.github#L1 `on` 中未定义事件触发器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69446872/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com