From 169e526a0d9b9eaa78d4a96f4433a2926e332254 Mon Sep 17 00:00:00 2001 From: Curtis Malainey Date: Mon, 13 Mar 2023 13:53:27 -0700 Subject: [PATCH] ci: add cherry-pick check for release branches Add a non mandatory check for release branches that help reviewers verify all patches have landed on main before the patch to release branch. The current configuration requires the cherry-pick command to be run with -x. This can be configured to do subject matching if that is too much for developers. Signed-off-by: Curtis Malainey --- .github/workflows/release.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000000..2d560baf0394 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,25 @@ +--- +# SPDX-License-Identifier: BSD-3-Clause + +# yamllint disable-line rule:truthy +on: + pull_request: + branches-ignore: + - main + +name: Validate + +# this job runs the following script +# https://github.com/cujomalainey/cherry-pick-check/blob/main/entrypoint.sh + +jobs: + check: + name: Check Cherry Picks + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Check all commits exist in main + uses: cujomalainey/cherry-pick-check@v1 + with: + require_ref: true + main_branch: main