From 59da2a0d8a8be08e278249039d66ca569b0638df Mon Sep 17 00:00:00 2001 From: Giovanni Toraldo <71768+gionn@users.noreply.github.com> Date: Tue, 14 Nov 2023 15:50:53 +0100 Subject: [PATCH] AAE-18008 Fixup dependabot updates for actions inside subdir (#365) --- .github/dependabot.yml | 22 +++++++++++++++++----- update-dependabot.sh | 3 ++- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 620018e91..4f10a0926 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -28,7 +28,19 @@ updates: schedule: interval: "weekly" - package-ecosystem: "github-actions" - directory: "/.github/actions/dbp-charts" + directory: "/.github/actions/dbp-charts/kubernetes-valid-ns" + schedule: + interval: "weekly" + - package-ecosystem: "github-actions" + directory: "/.github/actions/dbp-charts/publish-chart" + schedule: + interval: "weekly" + - package-ecosystem: "github-actions" + directory: "/.github/actions/dbp-charts/verify-compose" + schedule: + interval: "weekly" + - package-ecosystem: "github-actions" + directory: "/.github/actions/dbp-charts/verify-helm" schedule: interval: "weekly" - package-ecosystem: "github-actions" @@ -156,11 +168,11 @@ updates: schedule: interval: "weekly" - package-ecosystem: "github-actions" - directory: "/.github/actions/pre-commit" + directory: "/.github/actions/pre-commit-default" schedule: interval: "weekly" - package-ecosystem: "github-actions" - directory: "/.github/actions/pre-commit-default" + directory: "/.github/actions/pre-commit" schedule: interval: "weekly" - package-ecosystem: "github-actions" @@ -184,11 +196,11 @@ updates: schedule: interval: "weekly" - package-ecosystem: "github-actions" - directory: "/.github/actions/send-slack-notification" + directory: "/.github/actions/send-slack-notification-slow-job" schedule: interval: "weekly" - package-ecosystem: "github-actions" - directory: "/.github/actions/send-slack-notification-slow-job" + directory: "/.github/actions/send-slack-notification" schedule: interval: "weekly" - package-ecosystem: "github-actions" diff --git a/update-dependabot.sh b/update-dependabot.sh index 3519ba06a..0f7eb2070 100755 --- a/update-dependabot.sh +++ b/update-dependabot.sh @@ -32,7 +32,8 @@ echo "version: 2" > "$temp_config" echo "updates:" >> "$temp_config" # Loop through composite actions and append to temp config -for action_dir in $(find "$actions_dir" -mindepth 1 -maxdepth 1 -type d | sort -n); do +for action_filename in $(find "$actions_dir" -mindepth 2 -type f -name action.yml | sort -n); do + action_dir=$(dirname $action_filename) generate_dependabot_section "$action_dir" >> "$temp_config" done