Skip to content

Commit 9379d95

Browse files
authored
init action
1 parent ffdc484 commit 9379d95

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

action.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# action.yml
2+
name: 'Pull request bot checker for educational process'
3+
description: 'Check view of pr, such as: name of pr, commits, structure, files and so on'
4+
inputs:
5+
number-of-pr:
6+
description: 'Number of pull request'
7+
required: true
8+
default: '1'
9+
github-token:
10+
description: 'Github token'
11+
required: true
12+
default: "${{ github.token }}"
13+
repository-name:
14+
description: 'Full name of repo. Format.: <owner>/<name of repo>'
15+
required: true
16+
default: ${{ github.event.repository.full_name }}
17+
author:
18+
description: 'login of sender'
19+
required: true
20+
default: ${{ github.event.sender.login }}
21+
22+
runs:
23+
using: 'composite'
24+
steps:
25+
- run: echo Run checker. PR(${{ inputs.number-of-pr }})
26+
shell: bash
27+
- run: docker run -v ${PR_BOT_CONFIG_PATH}:/config --rm light5551/checker python3.8 pr.py ${{ inputs.github-token }} ${{ inputs.number-of-pr }} ${{ inputs.repository-name }} ${{ inputs.author }}
28+
shell: bash

0 commit comments

Comments
 (0)