Browse Source

feat(tool): Generate dependabot config

Signed-off-by: jld3103 <jld3103yt@gmail.com>
pull/547/head
jld3103 1 year ago
parent
commit
439b43abfb
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 27
      tool/generate-dependabot.sh

27
tool/generate-dependabot.sh

@ -0,0 +1,27 @@
#!/bin/bash
set -euxo pipefail
cd "$(dirname "$0")/.."
output="version: 2
updates:"
function add_update() {
package_ecosystem="$1"
path="$2"
output+="
- package-ecosystem: \"$package_ecosystem\"
directory: \"$path\"
schedule:
interval: \"daily\"
labels:
- \"dependencies\""
}
add_update github-actions /
add_update gradle /packages/app/android
for path in $(melos list --relative --parsable); do
add_update pub "/$path"
done
echo "$output" > .github/dependabot.yml
Loading…
Cancel
Save