Skip to content

Commit

Permalink
Add backport workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvinmo committed Dec 11, 2024
1 parent 3d07ab2 commit 4cd56a8
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Pull Request Backporting using Git Backporting

on:
workflow_dispatch:
inputs:
targetBranch:
description: 'Target branch'
required: true
type: string
pullRequest:
description: 'Pull request url'
required: true
type: string
dryRun:
description: 'Dry run'
required: false
default: "true"
type: string

jobs:
backporting:
name: "Backporting"
runs-on: ubuntu-latest
steps:
- name: Backporting
uses: kiegroup/git-backporting@v4
with:
target-branch: ${{ inputs.targetBranch }}
pull-request: ${{ inputs.pullRequest }}
auth: ${{ secrets.GITHUB_TOKEN }}
dry-run: ${{ inputs.dryRun }}

0 comments on commit 4cd56a8

Please sign in to comment.