Skip to content

Commit

Permalink
Merge pull request #6 from AlexsLemonade/jashapiro/initial-release
Browse files Browse the repository at this point in the history
Tag versions for release
  • Loading branch information
jashapiro authored Mar 8, 2024
2 parents bc94922 + b9a759d commit 0254531
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This repository contains a GitHub action to run the [R `spelling` package](https://cran.r-project.org/web/packages/spelling/index.html).
The role of this action is to facilitate spell checking actions across `AlexsLemonade` repositories.

Currently the action will only spell check text in Rmd and md files
Currently the action will only spell check text in Markdown (`.md`) and Rmarkdown (`.Rmd`) files.

## Usage

Expand All @@ -26,7 +26,7 @@ jobs:
uses: actions/checkout@v4

- name: Spell check action
uses: alexslemonade/spellcheck
uses: alexslemonade/spellcheck@v0
id: spell
with:
dictionary: components/dictionary.txt
Expand All @@ -48,4 +48,5 @@ Note that the `dictionary` input to the spell check step is optional and default
If you want to use a different dictionary, you can specify the path to the dictionary file in your repository.

You can also specify specific files to spell check using the `files` input to the `alexslemonade/spellcheck` step.
Note that the file extenstion restriction will still apply.
Globs should work as expected.
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ outputs:
description: The number of spelling errors
runs:
using: "docker"
image: ghcr.io/alexslemonade/spellcheck:edge
image: ghcr.io/alexslemonade/spellcheck:v0.1.0
args:
- ${{ inputs.dictionary || '/dev/null' }}
- ${{ inputs.files }}
2 changes: 1 addition & 1 deletion spell-check.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# To modify this behavior, provide a command-line argument with the extensions to check.

arguments <- commandArgs(trailingOnly = TRUE)
file_pattern <- "\\.(Rmd|md|rmd)$"
file_pattern <- "(?i)\\.(md|rmd)$"

# dictionary is required first argument
dict_file <- arguments[1]
Expand Down

0 comments on commit 0254531

Please sign in to comment.