Skip to content

Commit cff258c

Browse files
dbellettiniclaude
andcommitted
chore: add composer update GitHub Action
Runs composer update every Saturday and opens a PR if anything changed. Supports manual invocation via workflow_dispatch. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 2c84898 commit cff258c

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Composer Update
2+
3+
on:
4+
schedule:
5+
- cron: '0 8 * * 6' # Every Saturday at 08:00 UTC
6+
workflow_dispatch:
7+
8+
jobs:
9+
composer-update:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Setup PHP
16+
uses: shivammathur/setup-php@v2
17+
with:
18+
php-version: '8.4'
19+
20+
- name: Run composer update
21+
run: composer update --no-interaction --prefer-dist
22+
23+
- name: Create Pull Request
24+
uses: peter-evans/create-pull-request@v7
25+
with:
26+
commit-message: 'chore: composer update'
27+
title: 'chore: composer update'
28+
body: |
29+
Automated `composer update` run.
30+
31+
This PR was created automatically by the Composer Update workflow.
32+
branch: chore/composer-update
33+
delete-branch: true
34+
labels: dependencies

0 commit comments

Comments
 (0)