Skip to content

Commit

Permalink
use write.table and test output
Browse files Browse the repository at this point in the history
  • Loading branch information
jashapiro committed Mar 7, 2024
1 parent 0495834 commit 1534e8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ jobs:
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"
run: |
echo "There were ${{ steps.spell.outputs.error_count }} errors"
cat spell_check_errors.tsv
2 changes: 1 addition & 1 deletion spell-check.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spelling_errors <- spelling::spell_check_files(files, ignore = dictionary) |>


# Save spelling errors to file
write.csv(spelling_errors, "spell_check_errors.tsv", sep = "\t")
write.table(spelling_errors, "spell_check_errors.tsv", sep = "\t", quote = FALSE)

# Save error count to GITHUB_OUTPUT
system(paste0("echo 'error_count=", nrow(spelling_errors), "'>> $GITHUB_OUTPUT"))

0 comments on commit 1534e8b

Please sign in to comment.