Skip to content

Commit 4fd6472

Browse files
Merge branch 'psl-workflow-codeowners' of https://github.com/microsoft/Build-your-own-copilot-Solution-Accelerator into psl-workflow-codeowners
2 parents 4433f04 + 5d03cfc commit 4fd6472

File tree

2 files changed

+137
-0
lines changed

2 files changed

+137
-0
lines changed

.github/dependabot.yml

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
version: 2
2+
updates:
3+
# 1. React (JavaScript/TypeScript) dependencies
4+
- package-ecosystem: "npm"
5+
directory: "/ClientAdvisor/App/frontend"
6+
schedule:
7+
interval: "monthly"
8+
commit-message:
9+
prefix: "build"
10+
target-branch: "dependabotchanges"
11+
open-pull-requests-limit: 15
12+
13+
- package-ecosystem: "npm"
14+
directory: "/ResearchAssistant/App/frontend"
15+
schedule:
16+
interval: "monthly"
17+
commit-message:
18+
prefix: "build"
19+
target-branch: "dependabotchanges"
20+
open-pull-requests-limit: 15
21+
22+
# 2. Python dependencies
23+
- package-ecosystem: "pip"
24+
directory: "/ClientAdvisor/App"
25+
schedule:
26+
interval: "monthly"
27+
commit-message:
28+
prefix: "build"
29+
target-branch: "dependabotchanges"
30+
open-pull-requests-limit: 15
31+
32+
- package-ecosystem: "pip"
33+
directory: "/ClientAdvisor/AzureFunction"
34+
schedule:
35+
interval: "monthly"
36+
commit-message:
37+
prefix: "build"
38+
target-branch: "dependabotchanges"
39+
open-pull-requests-limit: 15
40+
41+
- package-ecosystem: "pip"
42+
directory: "/ClientAdvisor/Deployment/scripts/fabric_scripts"
43+
schedule:
44+
interval: "monthly"
45+
commit-message:
46+
prefix: "build"
47+
target-branch: "dependabotchanges"
48+
open-pull-requests-limit: 15
49+
50+
- package-ecosystem: "pip"
51+
directory: "/ClientAdvisor/Deployment/scripts/index_scripts"
52+
schedule:
53+
interval: "monthly"
54+
commit-message:
55+
prefix: "build"
56+
target-branch: "dependabotchanges"
57+
open-pull-requests-limit: 15
58+
59+
- package-ecosystem: "pip"
60+
directory: "/ResearchAssistant/App"
61+
schedule:
62+
interval: "monthly"
63+
commit-message:
64+
prefix: "build"
65+
target-branch: "dependabotchanges"
66+
open-pull-requests-limit: 15
67+
68+
- package-ecosystem: "pip"
69+
directory: "/ResearchAssistant/Deployment/scripts/aihub_scripts"
70+
schedule:
71+
interval: "monthly"
72+
commit-message:
73+
prefix: "build"
74+
target-branch: "dependabotchanges"
75+
open-pull-requests-limit: 15
76+
77+
- package-ecosystem: "pip"
78+
directory: "/ResearchAssistant/Deployment/scripts/fabric_scripts"
79+
schedule:
80+
interval: "monthly"
81+
commit-message:
82+
prefix: "build"
83+
target-branch: "dependabotchanges"
84+
open-pull-requests-limit: 15
85+
86+
- package-ecosystem: "pip"
87+
directory: "/ResearchAssistant/Deployment/scripts/index_scripts"
88+
schedule:
89+
interval: "monthly"
90+
commit-message:
91+
prefix: "build"
92+
target-branch: "dependabotchanges"
93+
open-pull-requests-limit: 16
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)