forked from novasamatech/nova-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
57 lines (55 loc) · 1.73 KB
/
action.yml
File metadata and controls
57 lines (55 loc) · 1.73 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Make pull request
description: Create commit and make pull-request
inputs:
commit-files:
description: "Which files will add to commit"
required: true
commit-message:
description: "Message for creating a commit"
required: true
app-id:
description: "Id for getting access to GitHub app"
required: true
app-token:
description: "Token for getting access to GitHub app"
required: true
branch-name:
description: "Name for branch for creating a commit"
required: true
pr-base:
description: "Base branch for creating PR"
required: true
pr-title:
description: "Title for creating Pull Request"
required: true
pr-body:
description: "Body for creating Pull Request"
required: true
pr-reviewer:
description: "Reviewers for creating PR, support comma delimiter"
required: false
default: "stepanLav,leohar"
runs:
using: "composite"
steps:
- uses: tibdex/github-app-token@v1
id: generate-token
with:
app_id: ${{ inputs.app-id }}
private_key: ${{ inputs.app-token }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ steps.generate-token.outputs.token }}
commit-message: ${{ inputs.commit-message }}
add-paths: ${{ inputs.commit-files }}
committer: novasama-bot <140433189+novasama-bot[bot]@users.noreply.github.com>
author: novasama-bot <140433189+novasama-bot[bot]@users.noreply.github.com>
signoff: false
branch: ${{ inputs.branch-name }}
delete-branch: true
title: ${{ inputs.pr-title }}
body: ${{ inputs.pr-body }}
reviewers: ${{ inputs.pr-reviewer }}
draft: false
base: ${{ inputs.pr-base }}