We would like to have dependabot update our submodules in different intervals. For example, google test has new commits almost every day but we probably won't need them immediately, so updating once a month is enough and we won't get spammed by pull requests from dependabot. For another submodule, we want updates as soon as possible, so we would like dependabot to update it daily.
I tried adding a second submodules section in dependabot.yml that only allows the submodule we want to update more frequently:
version: 2
updates:
- package-ecosystem: "gitsubmodule"
directory: "/"
schedule:
interval: "monthly"
- package-ecosystem: "gitsubmodule"
directory: "/"
schedule:
interval: "daily"
allow:
- dependency-name: "extern/<important-submodule>"
but that gave an error:
Your .github/dependabot.yml contained invalid details Dependabot encountered the following error when parsing your .github/dependabot.yml:
The property '#/updates/1' is a duplicate. Update configs must have a unique combination of 'package-ecosystem', 'directory', and 'target-branch'
Please update the config file to conform with Dependabot's specification.
Is this simply not possible or am I missing something?