Devbox Update #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: peter-evans/create-pull-request@v7 | |
| 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 | |
| delete-branch: true | |
| labels: dependencies |