Skip to content

Commit

Permalink
Merge pull request #878 from phpDocumentor/backport-workflow
Browse files Browse the repository at this point in the history
Add backport workflow
  • Loading branch information
jaapio authored Mar 1, 2024
2 parents 0f524b8 + 8a990df commit 6be5fb5
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .backportrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"repoOwner": "phpDocumentor",
"repoName": "guides",
"targetBranchChoices": ["1.x"],
"targetPRLabels": ["backport"],
"autoMerge": true,
"autoMergeMethod": "merge"
}
24 changes: 24 additions & 0 deletions .github/workflows/backport.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: "Backport"

on: # yamllint disable-line rule:truthy
pull_request_target:
types: ["labeled", "closed"]

jobs:
backport:
name: "Backport PR"
runs-on: "ubuntu-latest"
steps:
- name: "Backport Action"
uses: "sorenlouv/[email protected]"
with:
github_token: "${{ secrets.GITHUB_TOKEN }}"
auto_backport_label_prefix: "auto-backport-to-"

- name: "Info log"
if: "${{ success() }}"
run: "cat /home/runner/.backport/backport.info.log"

- name: "Debug log"
if: "${{ failure() }}"
run: "cat /home/runner/.backport/backport.debug.log"

0 comments on commit 6be5fb5

Please sign in to comment.