File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ # Please see the documentation for all configuration options:
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 : " dependentbotchanges"
15+
16+ # .NET NuGet dependencies
17+ - package-ecosystem : " nuget"
18+ directory : " /App/backend-api"
19+ schedule :
20+ interval : " monthly"
21+ commit-message :
22+ prefix : " build"
23+ open-pull-requests-limit : 50
24+ target-branch : " dependentbotchanges"
25+ - package-ecosystem : " nuget"
26+ directory : " /App/kernel-memory"
27+ schedule :
28+ interval : " monthly"
29+ commit-message :
30+ prefix : " build"
31+ open-pull-requests-limit : 50
32+ target-branch : " dependentbotchanges"
33+
34+ # npm dependencies for frontend project
35+ - package-ecosystem : " npm"
36+ directory : " /App/frontend-app"
37+ schedule :
38+ interval : " monthly"
39+ commit-message :
40+ prefix : " build"
41+ open-pull-requests-limit : 50
42+ target-branch : " dependentbotchanges"
Original file line number Diff line number Diff line change 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 dependabotchanges branch
40+ git push origin dependabotchanges
41+
42+ - name : Notify on Failure
43+ if : failure()
44+ run : echo "Sync from main to dependabotchanges failed!"
You can’t perform that action at this time.
0 commit comments