forked from dnnsoftware/Dnn.Platform
-
Notifications
You must be signed in to change notification settings - Fork 3
32 lines (28 loc) · 1.14 KB
/
open-merged-pr-to-future.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
name: Open Merged PR to release/10.0.0 Branch
on: workflow_dispatch
# pull_request:
# types: [closed]
# branches:
# - develop
jobs:
open-merged-pr-to-release-branch:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.merged }}
steps:
- uses: actions/checkout@v4
- uses: peterjgrainger/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branch: v10/${{ github.event.pull_request.head.ref }}-${{ github.event.pull_request.head.sha }}
- name: Create Pull Request
uses: repo-sync/[email protected]
with:
source_branch: v10/${{ github.event.pull_request.head.ref }}-${{ github.event.pull_request.head.sha }}
destination_branch: release/10.0.0
pr_title: v10 ${{ github.event.pull_request.title }}
pr_body: |
Applying #${{ github.event.pull_request.number }} to release/10.0.0
${{ github.event.pull_request.body }}
pr_label: ${{ join(github.event.pull_request.labels.*.name) }}
github_token: ${{ secrets.GITHUB_TOKEN }}