-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (49 loc) · 1.6 KB
/
devbox-update.yml
File metadata and controls
60 lines (49 loc) · 1.6 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
56
57
58
59
60
name: Devbox Update
on:
# Weekly schedule - Monday 10am UTC
schedule:
- cron: '0 10 * * 1'
# Manual trigger
workflow_dispatch:
# Reusable workflow - can be called from other repos
workflow_call:
concurrency:
group: devbox-update-${{ github.ref }}
cancel-in-progress: true
jobs:
update:
name: Update Devbox Dependencies
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v6
- name: Install devbox
uses: jetify-com/devbox-install-action@v0.15.0
- name: Update devbox packages
run: |
# Update all devbox packages to latest versions
devbox update
# Check if there are changes
if git diff --quiet devbox.lock; then
echo "No updates available"
echo "has_updates=false" >> $GITHUB_OUTPUT
else
echo "Updates found"
echo "has_updates=true" >> $GITHUB_OUTPUT
fi
id: update
- name: Create Pull Request
if: steps.update.outputs.has_updates == 'true'
uses: ./.github/actions/create-pull-request
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "chore(deps): update devbox packages"
title: "chore(deps): update devbox packages"
body: |
Automated devbox package updates.
This PR updates devbox.lock to the latest available package versions.
Please review the changes and ensure all tests pass before merging.
branch: devbox-updates
labels: dependencies