Skip to content

Commit b7a86ae

Browse files
authored
Refactor backport workflow to use reusable-backport.yml
Updated backport workflow to use reusable workflow and added necessary secrets.
1 parent 9091b7e commit b7a86ae

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

.github/workflows/backport.yml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
name: Backport
2-
32
on:
43
pull_request_target:
5-
types: [closed, labeled]
4+
types:
5+
- closed
6+
- labeled
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
611

712
jobs:
813
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 }}
14+
uses: TYPO3-Documentation/.github/.github/workflows/reusable-backport.yml@9d884304b1a5cdeeb2e21349a5bbfe52da5548d5
15+
with:
16+
label_pattern: "^backport (.+)$"
17+
secrets:
18+
APP_ID: ${{ secrets.APP_ID }}
19+
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
20+

0 commit comments

Comments
 (0)