Skip to content

Commit 0d5265f

Browse files
Merge pull request #31 from PelionIoT/re-usable-misspell
PR - use re-usable misspell
2 parents 9cabdd9 + 469834b commit 0d5265f

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

.github/workflows/misspell.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: misspell
2-
on: push
2+
on:
3+
push:
4+
workflow_dispatch:
35

46
# This allows a subsequently queued workflow run to interrupt previous runs
57
concurrency:
@@ -12,22 +14,12 @@ jobs:
1214
steps:
1315
- name: Check out code
1416
uses: actions/checkout@v4
15-
- name: Install Go
16-
uses: actions/setup-go@v5
17+
- name: Misspell
18+
uses: PelionIoT/actions/.github/actions/misspell@main
1719
with:
18-
go-version: '1.21'
19-
- name: Install & run misspell
20-
if: always()
21-
run: |
22-
# The original misspell is not maintained anymore, use the one
23-
# from golangci instead
24-
go install github.com/golangci/misspell/cmd/misspell@latest
25-
# As we run it locally - the repo is already there, including
26-
# the lib folder which has a lot of misspellings.
27-
# We need to specify the folders/files to check.
28-
misspell -error -i mosquitto .github blept-example byte-order \
20+
exceptions: "mosquitto"
21+
path: ".github blept-example byte-order \
2922
c-api-stress-tester cmake config device-interface examples-common \
3023
examples-common-2 include mqttpt-example pt-example \
3124
simple-js-examples/*.js simple-js-examples/*.md \
32-
CHANGELOG.md CMakeLists.txt CONTRIBUTING.md Do* Makefile README.md
33-
25+
CHANGELOG.md CMakeLists.txt CONTRIBUTING.md Do* Makefile README.md"

0 commit comments

Comments
 (0)