forked from PinSpace-Org/GistPin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdep-update-bot.yml
More file actions
55 lines (47 loc) · 1.64 KB
/
Copy pathdep-update-bot.yml
File metadata and controls
55 lines (47 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Infrastructure Dependency Update Bot
on:
schedule:
- cron: "0 5 * * 1"
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
check-versions:
name: Check Versions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run version check
id: versions
continue-on-error: true
run: |
bash infrastructure/scripts/check-versions.sh
- name: Upload version report
uses: actions/upload-artifact@v4
with:
name: version-report
path: infrastructure/ci/reports/versions-*.json
retention-days: 30
- name: Create dependency update PR
if: steps.versions.outcome == 'success'
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "chore: update infrastructure dependencies"
title: "chore: update infrastructure dependencies"
body: |
Automated infrastructure dependency update.
## Updates Detected
$(cat infrastructure/ci/reports/versions-*.json | python3 -c "
import json, sys
data = json.load(sys.stdin)
for dep in data.get('updates', []):
print(f'- **{dep[\"name\"]}**: {dep[\"current\"]} → {dep[\"latest\"]}')
" || echo "See version report artifact for details.")
## Verification
- [ ] Dependencies tested in CI
- [ ] Changelog reviewed for breaking changes
branch: chore/dep-update
labels: dependencies, automated-pr
delete-branch: true