Skip to content

[BUGFIX] Avoid notices and use null coalesce #1598

[BUGFIX] Avoid notices and use null coalesce

[BUGFIX] Avoid notices and use null coalesce #1598

Workflow file for this run

name: Docs
on:
push:
branches:
- "main"
env:
# see https://github.com/composer/composer/issues/9368#issuecomment-718112361
COMPOSER_ROOT_VERSION: "dev-main"
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Setup PHP"
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
coverage: none
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# see https://github.com/ramsey/composer-install
- name: "Install Composer dependencies"
uses: ramsey/composer-install@v3
- name: "Install rule doc generator"
run: composer require symplify/rule-doc-generator:^12.1 --with-all-dependencies
- name: "Generate documentation"
run: "composer docs:generate"
- name: "Uninstall rule doc generator"
run: composer remove symplify/rule-doc-generator
- name: "Commit documentation"
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: '[DOCS] Generate documentation'
commit_options: '--no-verify --signoff'
branch: "main"
push_options: '--force'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}