forked from openhab/openhab-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 1.24 KB
/
cherryPickAutomation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Cherry pick automation
# Automatically create pull requests to release branches on condition
on:
pull_request_target:
branches:
- main
types: ["closed"]
jobs:
cherry_pick_release_stable:
runs-on: ubuntu-latest
name: Cherry pick into release-stable
if: contains(github.event.pull_request.labels.*.name, 'release-stable')
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Cherry pick action
uses: carloscastrojumo/[email protected]
with:
branch: final-stable
committer: openhab-bot <[email protected]>
labels: |
cherry-pick
cherry_pick_release_v2_5_x:
runs-on: ubuntu-latest
name: Cherry pick into release-v2.5
if: contains(github.event.pull_request.labels.*.name, 'release-v2.5.x')
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Cherry pick action
uses: carloscastrojumo/[email protected]
with:
branch: final-2.5.x
committer: openhab-bot <[email protected]>
labels: |
cherry-pick
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}