Merge pull request #86 from andreaswolf/issue-81 #35
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: Docs | |
on: | |
push: | |
branches: | |
- "main" | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
composer-command: | |
- name: Generate docs | |
command: 'docs:generate' | |
directory: ['typo3-fractor', 'fractor-composer-json'] | |
name: '${{ matrix.composer-command.name }}/packages/${{ matrix.directory }}' | |
defaults: | |
run: | |
working-directory: packages/${{ matrix.directory }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Install composer dependencies | |
uses: php-actions/composer@v6 | |
with: | |
container_workdir: /app/packages/${{ matrix.directory }} | |
memory_limit: 512M | |
- name: 'Run check "${{ matrix.composer-command.name }}"' | |
uses: php-actions/composer@v6 | |
with: | |
container_workdir: /app/packages/${{ matrix.directory }} | |
command: ${{ matrix.composer-command.command }} | |
memory_limit: 512M | |
- name: "Commit documentation" | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
file_pattern: '*.md' | |
disable_globbing: true | |
commit_message: '[DOCS] Generate documentation' | |
commit_options: '--no-verify --signoff' | |
create_branch: true | |
branch: "feature-create-docs" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |