Skip to content

Commit 6be5fb5

Browse files
authored
Merge pull request #878 from phpDocumentor/backport-workflow
Add backport workflow
2 parents 0f524b8 + 8a990df commit 6be5fb5

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.backportrc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"repoOwner": "phpDocumentor",
3+
"repoName": "guides",
4+
"targetBranchChoices": ["1.x"],
5+
"targetPRLabels": ["backport"],
6+
"autoMerge": true,
7+
"autoMergeMethod": "merge"
8+
}

.github/workflows/backport.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: "Backport"
2+
3+
on: # yamllint disable-line rule:truthy
4+
pull_request_target:
5+
types: ["labeled", "closed"]
6+
7+
jobs:
8+
backport:
9+
name: "Backport PR"
10+
runs-on: "ubuntu-latest"
11+
steps:
12+
- name: "Backport Action"
13+
uses: "sorenlouv/[email protected]"
14+
with:
15+
github_token: "${{ secrets.GITHUB_TOKEN }}"
16+
auto_backport_label_prefix: "auto-backport-to-"
17+
18+
- name: "Info log"
19+
if: "${{ success() }}"
20+
run: "cat /home/runner/.backport/backport.info.log"
21+
22+
- name: "Debug log"
23+
if: "${{ failure() }}"
24+
run: "cat /home/runner/.backport/backport.debug.log"

0 commit comments

Comments
 (0)