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@v3

      - uses: peterjgrainger/action-create-branch@v2.2.0
        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.8
        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 }}

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@v3

      - uses: peterjgrainger/action-create-branch@v2.2.0
        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.9
        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 }}

Bump repo-sync/pull-request from 2.8 to 2.9
Bump repo-sync/pull-request from 2.8 to 2.9

Bumps [repo-sync/pull-request](https://github.com/repo-sync/pull-request) from 2.8 to 2.9.
- [Release notes](https://github.com/repo-sync/pull-request/releases)
- [Commits](https://github.com/repo-sync/pull-request/compare/v2.8...v2.9)

---
updated-dependencies:
- dependency-name: repo-sync/pull-request
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <5bdcd3c0d4d24ae3e71b3b452a024c6324c7e4bb@github.com>