Skip to content

chore: Auto merge cherry picked commits to dev (#16611) #22

chore: Auto merge cherry picked commits to dev (#16611)

chore: Auto merge cherry picked commits to dev (#16611) #22

# This job will automatically create a cherry pick PR from any release/* branch to the dev branch
# It allows the dev branch to stay up-to-date with fixes made to specific release branches
name: Cherry pick to dev
on:
push:
branches:
- release/*
jobs:
cherry_pick:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create PR to branch
uses: gorillio/github-action-cherry-pick@master
with:
pr_branch: 'dev'
env:
GITHUB_TOKEN: ${{ secrets.OTTO_THE_BOT_GH_TOKEN }}
# Add the auto-merge flag
- name: Enable auto-merge
run: gh pr edit ${{ github.event.pull_request.id }} --add-label auto-merge
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.WEBTEAM_AUTOMERGE_TOKEN}}