Skip to content

Commit 389a441

Browse files
committed
Check PR title for typos
1 parent da23158 commit 389a441

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

.github/workflows/typos.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ env:
88
CLICOLOR: 1
99

1010
jobs:
11-
spelling:
12-
name: Spell Check with Typos
11+
typos-in-sources:
12+
name: Check source files for typos
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout Actions Repository
@@ -20,3 +20,17 @@ jobs:
2020
uses: crate-ci/typos@f8a58b6b53f2279f71eb605f03a4ae4d10608f45 # v1.47.0
2121
with:
2222
config: ./typos.toml
23+
24+
pr-title-check:
25+
name: Check PR Title for Typos
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Write PR title to file
29+
shell: bash
30+
run: echo "$PR_TITLE" > /tmp/pr-title.txt
31+
env:
32+
PR_TITLE: ${{ github.event.pull_request.title }}
33+
- name: Spell-check PR title
34+
uses: crate-ci/typos@f8a58b6b53f2279f71eb605f03a4ae4d10608f45 # v1.47.0
35+
with:
36+
files: /tmp/pr-title.txt

0 commit comments

Comments
 (0)