mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 03:35:01 +01:00
56 lines
1.7 KiB
YAML
56 lines
1.7 KiB
YAML
name: Weekly Pull Requests
|
|
|
|
on:
|
|
schedule:
|
|
# https://crontab.guru/once-a-week
|
|
- cron: "0 0 * * 0"
|
|
|
|
jobs:
|
|
weekly_pull_requests:
|
|
|
|
# dont run jobs on forks, because gh-tokens are not available
|
|
if: github.event.pull_request.head.repo.full_name == github.repository
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
actions:
|
|
-
|
|
name: "Re-Generate CHANGELOG.md"
|
|
run: "composer changelog"
|
|
branch: 'automated-regenerated-changelog'
|
|
|
|
name: ${{ matrix.actions.name }}
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
-
|
|
uses: actions/checkout@v2
|
|
with:
|
|
token: ${{ secrets.ACCESS_TOKEN }}
|
|
|
|
# see https://github.com/shivammathur/setup-php
|
|
-
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: 7.4
|
|
coverage: none
|
|
tools: composer:v2
|
|
|
|
- run: composer install --no-progress --ansi
|
|
|
|
-
|
|
run: ${{ matrix.actions.run }}
|
|
|
|
# see https://github.com/peter-evans/create-pull-request
|
|
-
|
|
name: Create pull-request
|
|
uses: peter-evans/create-pull-request@v3
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
commit-message: "[automated] ${{ matrix.actions.name }}"
|
|
base: 'master'
|
|
branch: ${{ matrix.actions.branch }}
|
|
title: '[automated] ${{ matrix.actions.name }}'
|
|
delete-branch: true
|