Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add workflow to auto-open PRs to v9.11 branch #4913

Merged
merged 1 commit into from
Nov 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/open-merged-pr-to-future-9.11.0.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Open Merged PR to release/9.11.0 Branch

on:
pull_request:
types: [closed]
branches:
- develop

jobs:
open-merged-pr-to-ten-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: v9.11.0/${{ github.event.pull_request.head.ref }}-${{ github.event.pull_request.head.merge_commit_sha }}

- name: Create Pull Request
uses: repo-sync/pull-request@v2.6
with:
source_branch: v9.11.0/${{ github.event.pull_request.head.ref }}-${{ github.event.pull_request.head.merge_commit_sha }}
destination_branch: release/9.11.0
pr_title: v9.11.0 ${{ github.event.pull_request.title }}
pr_body: |
Applying #${{ github.event.pull_request.number }} to release/9.11.0
${{ github.event.pull_request.body }}
pr_label: ${{ join(github.event.pull_request.labels.*.name) }}
github_token: ${{ secrets.GITHUB_TOKEN }}