Skip to content

Commit

Permalink
Merge pull request dnnsoftware#4755 from bdukes/release-10-workflow
Browse files Browse the repository at this point in the history
Add workflow to auto-open PRs to v10 branch
  • Loading branch information
valadas authored Dec 1, 2021
2 parents bde54cd + af9b738 commit 9c6cd0f
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/open-merged-pr-to-future.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Open Merged PR to release/10.0.0 Branch

on:
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@v2.3.4

- uses: peterjgrainger/action-create-branch@v2.0.1
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/pull-request@v2.6
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 }}

0 comments on commit 9c6cd0f

Please sign in to comment.