-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
51 lines (45 loc) · 1.13 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
45
46
47
48
49
50
51
name: 'typocop'
description: 'Github action comments on PRs with typos or approvals'
author: "Datpmt <[email protected]>"
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
runs:
using: 'composite'
steps:
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.14.0-alpha.1'
- name: Install typos
run: |
python3 -m pip install --upgrade pip
pip install typos
shell: bash
- 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
env:
GITHUB_TOKEN: ${{ inputs.github_token }}
PULL_REQUEST_ID: ${{ inputs.pull_request_id }}
GITHUB_BASE_REF: ${{ inputs.github_base_ref }}
shell: bash