Skip to content

Commit

Permalink
AAE-18008 Fixup dependabot updates for actions inside subdir (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
gionn authored Nov 14, 2023
1 parent 67d95ff commit 59da2a0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
22 changes: 17 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion update-dependabot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 59da2a0

Please sign in to comment.