You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
504 B
27 lines
504 B
#!/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
|
|
|