Skip to content

Daily Composer Update #32

Daily Composer Update

Daily Composer Update #32

Workflow file for this run

name: Daily Composer Update
on:
schedule:
- cron: '0 1 * * *'
workflow_dispatch:
jobs:
update-dependencies:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
tools: composer:v2
- name: Update Composer dependencies
run: |
composer update
- name: Commit changes
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
if [ -n "$(git status --porcelain)" ]; then
git add composer.lock
git commit -m "chore: update composer dependencies"
git push
fi