23 lines
680 B
YAML
23 lines
680 B
YAML
name: Open update README PR
|
|
|
|
on:
|
|
repository_dispatch:
|
|
types: [ open-update-pr ]
|
|
|
|
jobs:
|
|
open-pr:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v6
|
|
with:
|
|
ref: main
|
|
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 }}
|