Weekly Pull Requests #91
This file contains 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: Weekly Pull Requests | |
on: | |
schedule: | |
# https://crontab.guru/once-a-week | |
- cron: "0 0 * * 0" | |
env: | |
# see https://github.com/composer/composer/issues/9368#issuecomment-718112361 | |
COMPOSER_ROOT_VERSION: "dev-main" | |
jobs: | |
weekly_pull_requests: | |
strategy: | |
fail-fast: false | |
matrix: | |
actions: | |
- | |
name: "Update composer packages" | |
run: "composer update-composer" | |
branch: 'automated-regenerated-composer-packages' | |
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.0 | |
coverage: none | |
- uses: "ramsey/composer-install@v3" | |
- run: ${{ matrix.actions.run }} | |
# see https://github.com/peter-evans/create-pull-request | |
- | |
name: Create pull-request | |
uses: peter-evans/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
commit-message: "[automated] ${{ matrix.actions.name }}" | |
base: 'main' | |
branch: ${{ matrix.actions.branch }} | |
title: '[automated] ${{ matrix.actions.name }}' | |
delete-branch: true |