From 30f94f4f98d942ca316bee8e2316c1492357e208 Mon Sep 17 00:00:00 2001 From: minenice55 Date: Sat, 27 Jan 2024 22:41:06 -0500 Subject: [PATCH] action to cherry-pick PRs to appropriate branches on merge --- .github/workflows/cherry-tirage.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/cherry-tirage.yml diff --git a/.github/workflows/cherry-tirage.yml b/.github/workflows/cherry-tirage.yml new file mode 100644 index 000000000..8686215a0 --- /dev/null +++ b/.github/workflows/cherry-tirage.yml @@ -0,0 +1,25 @@ +on: + pull_request_target: + branches: + - master + types: ["closed"] + +jobs: + cherry_no_future_to_current: + runs-on: ubuntu-latest + name: Cherry pick into current release + if: ${{ !contains(github.event.pull_request.labels.*.name, 'release-2') }} + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Cherry pick into current release + uses: xealth/cherry-pick-action@v1.0.0 + with: + branch: release_1_patches + labels: | + cherry-pick + +env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file