-
Notifications
You must be signed in to change notification settings - Fork 5
54 lines (47 loc) · 1.63 KB
/
fluid-viewhelper.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Fluid ViewHelper Documentation
on:
workflow_dispatch:
schedule:
- cron: '0 1 * * *'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
core: ['main', '13.4', '12.4']
fail-fast: false
env:
TARGET_PATH: ${{ secrets.API_TARGET_PATH }}/${{ matrix.core }}
steps:
- name: Setup PHP 8.2
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Checkout
uses: actions/checkout@v4
- name: Create RST documentation for Core ${{ matrix.core }}
working-directory: ./Build/fluid-viewhelpers/${{ matrix.core }}
run: |
composer install --no-dev -n -o --no-progress
composer generate-documentation
cp -r fluidDocumentationOutput ../../../documentation
- name: "Checkout ViewHelper Docs: ${{ matrix.core }}"
uses: actions/checkout@v4
with:
repository: 'TYPO3-Documentation/TYPO3CMS-Reference-ViewHelper'
path: viewhelpers
ref: ${{ matrix.core }}
token: ${{ secrets.GH_PUSH_TOKEN }}
- name: Update repository
working-directory: ./viewhelpers
# - fails if there are no changes
# - keep original Documentation/Index.rst
continue-on-error: true
run: |
cp -rf ../documentation/* Documentation/
git checkout HEAD -- Documentation/Index.rst
git config user.name "TYPO3 Documentation Team"
git config user.email "documentation-automation@typo3.com"
git add .
git commit -m '[BOT][TASK] Automatic Update of ViewHelper reference'
git push