-
Notifications
You must be signed in to change notification settings - Fork 3
32 lines (29 loc) · 910 Bytes
/
pull_request.yml
File metadata and controls
32 lines (29 loc) · 910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Automatic Pull request
on:
workflow_dispatch:
inputs:
title:
description: 'title of example'
required: true
body:
description: 'description of example'
required: true
upstreamRepo:
description: 'Upstream repo'
required: true
botRepo:
description: 'bot repo'
required: true
repo:
description: 'repo name'
required: true
jobs:
create-pull-request:
runs-on: ubuntu-latest
steps:
- name: Create PR
run: |
gh pr create --repo ${{ github.event.inputs.upstreamRepo }}/${{ github.event.inputs.repo }} --head ${{ github.event.inputs.botRepo }}:${{ github.ref }} --base main --title "${{ github.event.inputs.title }}" --body "${{ github.event.inputs.body }}"
env:
GH_TOKEN: ${{ github.token }}
GITHUB_TOKEN: ${{ secrets.token }}