From 3c2ad7b56327dd0aad67427acf3254252fe22fa6 Mon Sep 17 00:00:00 2001 From: Fingertips Date: Sat, 16 Nov 2024 18:42:13 +0800 Subject: [PATCH] chore: Add github workflow dependabot.yml Added dependabot.yml for GitHub to automate dependency updates. --- .github/workflows/dependabot.yml | 37 ++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/dependabot.yml diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml new file mode 100644 index 0000000..b52425c --- /dev/null +++ b/.github/workflows/dependabot.yml @@ -0,0 +1,37 @@ +name: "Dependabot Configuration" + +version: 2 +updates: + # Update Go dependencies for the root directory + - name: "Update Go Dependencies" + package-ecosystem: "go" + directory: / + schedule: + interval: "daily" # Check for updates every day + allow: + - dependency-name: "github.com/test/*" # Only allow updates from the specified Go dependencies + commit-message: + prefix: chore # Use 'chore' prefix for the commit message + include: scope # Include the scope (dependency name) in the commit message + + # Update npm dependencies for the client directory + - name: "Update NPM Dependencies (Client)" + package-ecosystem: "npm" + directory: /client + schedule: + interval: "daily" # Check for updates every day + allow: + - dependency-name: "github.com/Fingertips18/*" # Only allow updates from the specified npm dependencies + commit-message: + prefix: chore # Use 'chore' prefix for the commit message + include: scope # Include the scope (dependency name) in the commit message + + # Update GitHub Actions dependencies for the root directory + - name: "Update GitHub Actions" + package-ecosystem: "github-actions" + directory: / + schedule: + interval: "weekly" # Check for updates once a week + commit-message: + prefix: chore # Use 'chore' prefix for the commit message + include: scope # Include the scope (dependency name) in the commit message