Skip to content

Commit b215ac5

Browse files
Merge pull request #18 from Harmanpreet-Microsoft/main
Add Dependabot Configuration with Sync to 'dependentbotchanges' Branch
2 parents b93b65f + 203086c commit b215ac5

File tree

2 files changed

+107
-0
lines changed

2 files changed

+107
-0
lines changed

.github/dependabot.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# For more details, refer to the documentation:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
version: 2
6+
updates:
7+
# GitHub Actions dependencies
8+
- package-ecosystem: "github-actions"
9+
directory: "/"
10+
schedule:
11+
interval: "monthly"
12+
commit-message:
13+
prefix: "build"
14+
target-branch: "dependabotchanges"
15+
open-pull-requests-limit: 10
16+
17+
# .NET NuGet dependencies for Backend API (Multiple Projects)
18+
- package-ecosystem: "nuget"
19+
directory: "/App/backend-api/Microsoft.GS.DPS"
20+
schedule:
21+
interval: "monthly"
22+
commit-message:
23+
prefix: "build"
24+
target-branch: "dependabotchanges"
25+
open-pull-requests-limit: 30
26+
27+
- package-ecosystem: "nuget"
28+
directory: "/App/backend-api/Microsoft.GS.DPS.Host"
29+
schedule:
30+
interval: "monthly"
31+
commit-message:
32+
prefix: "build"
33+
target-branch: "dependabotchanges"
34+
open-pull-requests-limit: 30
35+
36+
# .NET NuGet dependencies for Kernel Memory Clients
37+
- package-ecosystem: "nuget"
38+
directory: "/App/kernel-memory/clients/dotnet/SemanticKernelPlugin"
39+
schedule:
40+
interval: "monthly"
41+
commit-message:
42+
prefix: "build"
43+
target-branch: "dependabotchanges"
44+
open-pull-requests-limit: 30
45+
46+
- package-ecosystem: "nuget"
47+
directory: "/App/kernel-memory/clients/dotnet/WebClient"
48+
schedule:
49+
interval: "monthly"
50+
commit-message:
51+
prefix: "build"
52+
target-branch: "dependabotchanges"
53+
open-pull-requests-limit: 30
54+
55+
# npm dependencies for Frontend App
56+
- package-ecosystem: "npm"
57+
directory: "/App/frontend-app"
58+
schedule:
59+
interval: "monthly"
60+
commit-message:
61+
prefix: "build"
62+
target-branch: "dependabotchanges"
63+
open-pull-requests-limit: 30
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Sync Main to dependabotchanges
2+
3+
on:
4+
# Schedule the sync job to run daily or customize as needed
5+
schedule:
6+
- cron: '0 1 * * *' # Runs every day at 1 AM UTC
7+
# Trigger the sync job on pushes to the main branch
8+
push:
9+
branches:
10+
- main
11+
12+
jobs:
13+
sync:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v3
19+
with:
20+
fetch-depth: 0 # Fetch all history for accurate branch comparison
21+
22+
- name: Configure Git
23+
run: |
24+
git config user.name "github-actions[bot]"
25+
git config user.email "github-actions[bot]@users.noreply.github.com"
26+
27+
- name: Sync main to dependabotchanges
28+
run: |
29+
# Ensure we're on the main branch
30+
git checkout main
31+
# Fetch the latest changes
32+
git pull origin main
33+
34+
# Switch to dependabotchanges branch
35+
git checkout dependabotchanges
36+
# Merge main branch changes
37+
git merge main --no-edit
38+
39+
# Push changes back to dependabotchanges1 branch
40+
git push origin dependabotchanges
41+
42+
- name: Notify on Failure
43+
if: failure()
44+
run: echo "Sync from main to dependabotchanges failed!"

0 commit comments

Comments
 (0)