Skip to content

Commit fca0ec6

Browse files
committed
[TASK] Migrate backport and documentation workflows to shared reusable workflows
1 parent 5973323 commit fca0ec6

File tree

2 files changed

+17
-28
lines changed

2 files changed

+17
-28
lines changed

.github/workflows/backport.yml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,16 @@ name: Backport
22

33
on:
44
pull_request_target:
5-
types: [closed, labeled]
5+
types:
6+
- closed
7+
- labeled
8+
9+
permissions:
10+
contents: write
11+
pull-requests: write
612

713
jobs:
814
backport:
9-
if: github.event.pull_request.merged == true
10-
runs-on: ubuntu-latest
11-
12-
permissions:
13-
contents: write
14-
pull-requests: write
15-
16-
steps:
17-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v 6.0.2
18-
19-
- name: Backport
20-
uses: korthout/backport-action@4aaf0e03a94ff0a619c9a511b61aeb42adea5b02 # v4.2.0
21-
with:
22-
github_token: ${{ secrets.GITHUB_TOKEN }}
15+
uses: TYPO3-Documentation/.github/.github/workflows/reusable-backport.yml@main
16+
with:
17+
label_pattern: "^backport (.+)$"
Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
name: Test documentation
22

3-
on: [ push, pull_request ]
3+
on:
4+
push:
5+
pull_request:
46

57
jobs:
6-
tests:
7-
name: Render documentation
8-
runs-on: ubuntu-latest
9-
steps:
10-
- name: Checkout
11-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
12-
13-
- name: Test if the documentation will render without warnings
14-
run: |
15-
mkdir -p Documentation-GENERATED-temp \
16-
&& docker run --rm --pull always -v $(pwd):/project \
17-
ghcr.io/typo3-documentation/render-guides:latest --config=Documentation --no-progress --minimal-test
8+
render:
9+
uses: TYPO3-Documentation/.github/.github/workflows/reusable-test-documentation.yml@main
10+
with:
11+
render-flags: '--no-progress --minimal-test'

0 commit comments

Comments
 (0)