Skip to main content

check-non-standard-chars.yml

Detect curly quotes, en/em dashes, and the multiplication sign in .qmd, .R, and .md files, which can break Quarto and R rendering. The check fails when it finds any, reporting each file:line:col so you can fix it.

Inputs

Input Type Default Description
python-version string '3.x' Python version to set up.
extensions string '.qmd, .R, .md' Comma- or space-separated list of file extensions to check.
runs-on string empty (CI_RUNNER variable, else ubuntu-latest) Runner label for the job. Use a self-hosted label only for a private repository; never for a public one, whose pull requests can run arbitrary code on it (#1167).

Permissions

Only contents: read (the default), so no permissions: block is needed.

Example

name: Check non-standard characters
on:
  push: { branches: [main] }
  pull_request:
  workflow_dispatch:
jobs:
  check:
    uses: Morrison-Lab/gha/.github/workflows/check-non-standard-chars.yml@v2
    # with:
    #   runs-on: private-runner  # self-hosted runner label (private repositories only)

See examples/check-non-standard-chars.yml for the full caller stub.