Skip to content

open-update-pr

open-update-pr #427

name: Open update docs PR
on:
repository_dispatch:
types: [ open-update-pr ]
jobs:
open-pr:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: gitbook-dev
token: ${{ secrets.REPO_ACCESS_TOKEN || secrets.GITHUB_TOKEN }}
- name: pull-request
uses: repo-sync/pull-request@v2
with:
source_branch: ${{ github.event.client_payload.source_branch }}
destination_branch: ${{ github.event.client_payload.destination_branch }}
github_token: ${{ secrets.REPO_ACCESS_TOKEN || secrets.GITHUB_TOKEN }}
pr_title: ${{ github.event.client_payload.title }}