Skip to content

Daily Pull Request Automatic Update #3629

Daily Pull Request Automatic Update

Daily Pull Request Automatic Update #3629

name: Daily Pull Request Automatic Update
on:
schedule:
# https://crontab.guru/every-6-hours
- cron: "0 */6 * * *"
env:
# see https://github.com/composer/composer/issues/9368#issuecomment-718112361
COMPOSER_ROOT_VERSION: "dev-main"
jobs:
daily_pull_request_automatic_update:
strategy:
fail-fast: false
matrix:
actions:
-
name: "Update Rector Dependencies"
run: "composer update rector/rector phpstan/phpdoc-parser --with-all-dependencies"
branch: 'automated-regenerated-composer-lock'
name: ${{ matrix.actions.name }}
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v4
with:
token: ${{ secrets.ACCESS_TOKEN }}
# see https://github.com/shivammathur/setup-php
-
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
coverage: none
- run: ${{ matrix.actions.run }}
# see https://github.com/peter-evans/create-pull-request
-
name: Create pull-request
id: cpr
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.ACCESS_TOKEN }}
commit-message: "[automated] ${{ matrix.actions.name }}"
base: 'main'
branch: ${{ matrix.actions.branch }}
title: '[automated] ${{ matrix.actions.name }}'
delete-branch: true
-
name: Enable Pull Request Automerge
if: steps.cpr.outputs.pull-request-operation == 'created'
uses: peter-evans/enable-pull-request-automerge@v1
with:
token: ${{ secrets.ACCESS_TOKEN }}
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
merge-method: squash