-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from AlexsLemonade/jashapiro/action
Make it a full action
- Loading branch information
Showing
5 changed files
with
61 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
on: [push] | ||
|
||
jobs: | ||
spell-check: | ||
runs-on: ubuntu-latest | ||
name: Test the spell check action | ||
steps: | ||
# To use this repository's private action, | ||
# you must check out the repository | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Spell check action | ||
uses: ./ # Uses an action in the root directory | ||
id: spell | ||
# Use the output from the `spell check` step | ||
- name: Get the number of errors | ||
run: | | ||
echo "There were ${{ steps.spell.outputs.error_count }} errors" | ||
cat spell_check_errors.tsv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# action.yml | ||
name: 'R spell check' | ||
description: 'Spell check R, Rmd and md files' | ||
inputs: | ||
dictionary: # id of input | ||
description: 'Dictionary file path' | ||
required: true | ||
default: 'components/dictionary.txt' | ||
files: | ||
description: Glob of files to check | ||
required: false | ||
outputs: | ||
error_count: | ||
description: The number of spelling errors | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' | ||
args: | ||
- ${{ inputs.dictionary }} | ||
- ${{ inputs.files }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters