From 4cd56a8bf4e7faf0c32761a5833d0fb54979146d Mon Sep 17 00:00:00 2001 From: Kelvin Mo Date: Wed, 11 Dec 2024 09:31:53 +0000 Subject: [PATCH] Add backport workflow --- .github/workflows/backport.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/backport.yml diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml new file mode 100644 index 0000000..c8afa43 --- /dev/null +++ b/.github/workflows/backport.yml @@ -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 }}