Auto merge #587
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: Auto merge | |
on: | |
schedule: | |
# At 02:00 | |
# https://crontab.guru/#0_2_*_*_* | |
- cron: '0 2 * * *' | |
workflow_dispatch: | |
inputs: | |
projects: | |
description: 'Projects to do an auto merge, separated by spaces (empty means all)' | |
env: | |
REQUIRED_PHP_EXTENSIONS: redis | |
permissions: | |
contents: read | |
jobs: | |
dispatch: | |
name: PHP ${{ matrix.php-version }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: | |
- '8.2' | |
services: | |
redis: | |
image: redis | |
options: >- | |
--health-cmd "redis-cli ping" | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 6379:6379 | |
env: | |
APP_ENV: prod | |
APP_DEBUG: 0 | |
REDIS_HOST: localhost | |
REDIS_PORT: 6379 | |
GITHUB_OAUTH_TOKEN: ${{ secrets.OAUTH_TOKEN_GITHUB }} | |
DEV_KIT_TOKEN: ${{ secrets.DEV_KIT_TOKEN }} | |
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install PHP with extensions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
extensions: ${{ env.REQUIRED_PHP_EXTENSIONS }} | |
coverage: none | |
tools: composer:v2 | |
- name: Install Composer dependencies (locked) | |
uses: ramsey/composer-install@v3 | |
with: | |
composer-options: --no-dev --classmap-authoritative | |
- name: Dump env | |
run: composer dump-env prod | |
- name: Dispatch files | |
run: bin/console auto-merge ${{ github.event.inputs.projects }} --apply |