-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
44 lines (40 loc) · 1.06 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: 'typocop'
description: 'Github action comments on PRs with typos or approvals'
author: "Datpmt <datpmt.2k@gmail.com>"
repository: "/~https://github.com/datpmt/typocop"
branding:
icon: 'check-circle'
color: 'green'
inputs:
github_token:
description: 'GitHub Token'
required: true
pull_request_id:
description: 'Pull Request ID'
required: true
github_base_ref:
description: 'GitHub Base Ref'
required: true
setting:
description: 'Path to the custom setting.yml file for Typocop'
required: false
default: .github/typocop/setting.yml
runs:
using: 'composite'
steps:
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
- name: Install Typocop
run: |
gem install typocop
shell: bash
- name: Run Typocop
run: |
typocop execute --config ${{ inputs.setting }}
env:
GITHUB_TOKEN: ${{ inputs.github_token }}
PULL_REQUEST_ID: ${{ inputs.pull_request_id }}
GITHUB_BASE_REF: ${{ inputs.github_base_ref }}
shell: bash