Skip to content

Commit

Permalink
ci: add cherry-pick check for release branches
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
cujomalainey committed Mar 13, 2023
1 parent 8aab183 commit 169e526
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 169e526

Please sign in to comment.