Skip to content

Commit

Permalink
Updated pre-commit hook configuration and ran it towards the files
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbn committed Dec 6, 2022
1 parent 4f880ce commit 63ac3d7
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 17 deletions.
17 changes: 10 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@ repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: no-commit-to-branch
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- id: file-contents-sorter
files: wordlist.txt
- id: check-added-large-files
- id: no-commit-to-branch
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.32.2
hooks:
- id: markdownlint
name: "Checking Markdown using markdownlint"
- id: markdownlint
name: "Checking Markdown using markdownlint"
16 changes: 8 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,38 +23,38 @@
## 0.24.0, 2022-05-17, feature release, update not required

- @riccardoporreca created issue [#68](https://github.com/rojopolis/spellcheck-github-actions/issues/68) requested the ability to create an output artifact.

With release 0.24.0 this is now available.

The action configuration has to have the `output_file` parameter specified, which is a new optional parameter.

```yaml
name: Spellcheck Action

on:
workflow_dispatch:
push:

jobs:
build:
name: Spellcheck
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v3

- uses: rojopolis/spellcheck-github-actions@0.24.0
name: Spellcheck (no output file)
with:
source_files: README.md CHANGELOG.md

- uses: rojopolis/spellcheck-github-actions@0.24.0
name: Spellcheck (with output file)
with:
source_files: README.md CHANGELOG.md
task_name: Markdown
output_file: spellcheck-output.txt

- uses: actions/upload-artifact@v3
name: Archive spellcheck output output
with:
Expand Down Expand Up @@ -87,7 +87,7 @@
## 0.22.1, 2022-02-23, bug fix release, update recommended

- Testing the new Spanish support feature more thoroughly, demonstrated that the Docker build process was broken and only English worked

- I addressed issue [#57](https://github.com/rojopolis/spellcheck-github-actions/issues/57), which demonstrated an issue with the Docker build, the issue is no longer relevant with the simplification of the Docker build via PR: [#82](https://github.com/rojopolis/spellcheck-github-actions/pull/82) by me (@jonasbn)

## 0.22.0, 2022-02-21, feature release, update not required
Expand Down
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ if [ -n "$INPUT_SOURCE_FILES" ]; then

SOURCES_LIST="$SOURCES_LIST --source $FILE"
echo "Checking quoted file >$FILE<"

done

IFS=$OIFS
unset OIFS

else
else
read -a arr <<< "$INPUT_SOURCE_FILES"

for FILE in "${arr[@]}"; do
Expand Down

0 comments on commit 63ac3d7

Please sign in to comment.