Skip to content

ci: add automerge-sync-pr workflow #8

ci: add automerge-sync-pr workflow

ci: add automerge-sync-pr workflow #8

name: Sync changes to remote release branch
on:
workflow_dispatch:
pull_request:
branches: [ main ]
types: [ closed ]
env:
PR_TEAM_REVIEWERS: |
nix
jobs:
sync-changes:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
strategy:
matrix:
include:
- branch: release
labels: branch/release
fail-fast: false
steps:
- uses: actions/checkout@main
with:
ref: ${{ github.event.repository.default_branch }}
fetch-depth: 0
- name: Cherry pick changes into target branch
uses: carloscastrojumo/[email protected]
with:
branch: ${{ matrix.branch }}
labels: |
git/cherry-pick
${{ matrix.labels }}
team-reviewers: ${{ env.PR_TEAM_REVIEWERS }}
title: '[cherry-pick] {old_title}'
body: 'ci: cherry picking #{old_pull_request_id} onto ${{ matrix.branch }}'