Skip to content

👷 Setup GH actions workflow to check sources for typos #5

👷 Setup GH actions workflow to check sources for typos

👷 Setup GH actions workflow to check sources for typos #5

Workflow file for this run

name: Check typos
permissions: {}
on: [pull_request]
env:
CLICOLOR: 1
jobs:
typos-in-sources:
name: Check source files for typos
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Spell Check Repo
uses: crate-ci/typos@f8a58b6b53f2279f71eb605f03a4ae4d10608f45 # v1.47.0
with:
config: ./typos.toml
pr-title-check:
name: Check PR Title for Typos
runs-on: ubuntu-latest
steps:
- name: Write PR title to file
shell: bash
run: echo "$PR_TITLE" > /tmp/pr-title.txt
env:
PR_TITLE: ${{ github.event.pull_request.title }}
- name: Spell-check PR title
uses: crate-ci/typos@f8a58b6b53f2279f71eb605f03a4ae4d10608f45 # v1.47.0
with:
files: /tmp/pr-title.txt