2021-07-14 00:23:12 +08:00
|
|
|
# spelling.yml is blocked per https://github.com/check-spelling/check-spelling/security/advisories/GHSA-g86g-chm8-7r2p
|
2020-05-21 11:19:08 +08:00
|
|
|
name: Spell checking
|
|
|
|
on:
|
2021-03-18 02:27:30 +08:00
|
|
|
pull_request_target:
|
2020-05-21 11:19:08 +08:00
|
|
|
push:
|
|
|
|
|
|
|
|
jobs:
|
2021-07-14 00:23:12 +08:00
|
|
|
spelling:
|
2020-05-21 11:19:08 +08:00
|
|
|
name: Spell checking
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-03-18 02:27:30 +08:00
|
|
|
- name: checkout-merge
|
|
|
|
if: "contains(github.event_name, 'pull_request')"
|
2021-07-14 00:23:12 +08:00
|
|
|
uses: actions/checkout@v2
|
2020-05-21 11:19:08 +08:00
|
|
|
with:
|
2021-03-18 02:27:30 +08:00
|
|
|
ref: refs/pull/${{github.event.pull_request.number}}/merge
|
|
|
|
- name: checkout
|
|
|
|
if: "!contains(github.event_name, 'pull_request')"
|
2021-07-14 00:23:12 +08:00
|
|
|
uses: actions/checkout@v2
|
|
|
|
- uses: check-spelling/check-spelling@v0.0.19
|
2021-03-18 02:27:30 +08:00
|
|
|
with:
|
|
|
|
config: .github/actions/spell-check
|