| 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | echo '# auto-generated by scripts/dependabot. DO NOT EDIT. |
| 4 | |
| 5 | version: 2 |
| 6 | |
| 7 | updates: |
| 8 | - package-ecosystem: "github-actions" |
| 9 | directory: "/" |
| 10 | schedule: |
| 11 | interval: "weekly" |
| 12 | day: "monday" |
| 13 | time: "05:00" |
| 14 | timezone: "America/New_York" |
| 15 | labels: |
| 16 | - "dependencies" |
| 17 | commit-message: |
| 18 | prefix: "chore" |
| 19 | include: "scope" |
| 20 | groups: |
| 21 | actions: |
| 22 | patterns: |
| 23 | - "*"' >./.github/dependabot.yml |
| 24 | |
| 25 | echo ' - package-ecosystem: "gomod" |
| 26 | directories:' >>./.github/dependabot.yml |
| 27 | find . -type f -name go.mod | cut -f2- -d'/' | sort | while read -r mod; do |
| 28 | echo ' - "/'"$(dirname "$mod")"'"' >>./.github/dependabot.yml |
| 29 | done |
| 30 | |
| 31 | echo ' schedule: |
| 32 | interval: "weekly" |
| 33 | day: "monday" |
| 34 | time: "05:00" |
| 35 | timezone: "America/New_York" |
| 36 | labels: |
| 37 | - "dependencies" |
| 38 | commit-message: |
| 39 | prefix: "chore" |
| 40 | include: "scope" |
| 41 | groups: |
| 42 | gomod: |
| 43 | patterns: |
| 44 | - "*"' >>./.github/dependabot.yml |