-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
44 lines (37 loc) · 1.05 KB
/
action.yml
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
name: "Create Pull Request"
description: "Create Pull Request with a flag to auto_merge"
branding:
color: yellow
icon: git-pull-request
inputs:
auto_merge:
description: "Set the Pull Request with auto-merge"
required: false
default: "false"
draft:
description: "Set the Pull Request to draft"
required: false
default: "false"
merge_method:
description: "Choose a method to merge the PR"
required: false
default: "MERGE"
runs:
using: "composite"
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip' # caching pip dependencies
- name: Installing Python dependencies
run: pip install -r $GITHUB_ACTION_PATH/requirements.txt
shell: bash
- name: Create Pull Request
run: python $GITHUB_ACTION_PATH/autocreate.py
shell: bash
env:
INPUT_AUTO_MERGE: ${{ inputs.auto_merge }}
INPUT_DRAFT: ${{ inputs.draft }}
INPUT_MERGE_METHOD: ${{ inputs.merge_method }}