Browse Source

Merge pull request #547 from nextcloud/fix/dependabot

Fix/dependabot
pull/548/head
Kate 1 year ago committed by GitHub
parent
commit
38e4a9777e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 64
      .github/dependabot.yml
  2. 27
      tool/generate-dependabot.sh

64
.github/dependabot.yml

@ -7,13 +7,73 @@ updates:
labels: labels:
- "dependencies" - "dependencies"
- package-ecosystem: "gradle" - package-ecosystem: "gradle"
directory: "/" directory: "/packages/app/android"
schedule: schedule:
interval: "daily" interval: "daily"
labels: labels:
- "dependencies" - "dependencies"
- package-ecosystem: "pub" - package-ecosystem: "pub"
directory: "/" directory: "/packages/app"
schedule:
interval: "daily"
labels:
- "dependencies"
- package-ecosystem: "pub"
directory: "/packages/dynamite/dynamite"
schedule:
interval: "daily"
labels:
- "dependencies"
- package-ecosystem: "pub"
directory: "/packages/dynamite/dynamite_runtime"
schedule:
interval: "daily"
labels:
- "dependencies"
- package-ecosystem: "pub"
directory: "/packages/file_icons"
schedule:
interval: "daily"
labels:
- "dependencies"
- package-ecosystem: "pub"
directory: "/packages/neon/neon"
schedule:
interval: "daily"
labels:
- "dependencies"
- package-ecosystem: "pub"
directory: "/packages/neon/neon_files"
schedule:
interval: "daily"
labels:
- "dependencies"
- package-ecosystem: "pub"
directory: "/packages/neon/neon_news"
schedule:
interval: "daily"
labels:
- "dependencies"
- package-ecosystem: "pub"
directory: "/packages/neon/neon_notes"
schedule:
interval: "daily"
labels:
- "dependencies"
- package-ecosystem: "pub"
directory: "/packages/neon/neon_notifications"
schedule:
interval: "daily"
labels:
- "dependencies"
- package-ecosystem: "pub"
directory: "/packages/nextcloud"
schedule:
interval: "daily"
labels:
- "dependencies"
- package-ecosystem: "pub"
directory: "/packages/sort_box"
schedule: schedule:
interval: "daily" interval: "daily"
labels: labels:

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