GitHub Action
misspell-fixer-action
0.1.0
Latest version
📝Automatically fixes typos in your source code and docs!
Based on awesome misspell-fixer tool.
We had a typo in our entrypoint.sh
file to show how this Github Action works.
By using a pipeline of three actions we are able to receive PRs like this one.
Here's how our configuration looks like:
- uses: actions/checkout@v2
- uses: sobolevn/misspell-fixer-action@master
- uses: peter-evans/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
Here's how it works:
- The first
actions/checkout@v2
action checkouts our code from the repo - Our own
sobolevn/misspell-fixer-action
finds misspells and fixes them - Then
peter-evans/create-pull-request
creates a PR with the fixes created earlier - Done!
See logs of our own Github Actions with the fixed typo.
And here's how our workflow looks like.
You can pass any options that are supported by misspell-fixer
tool,
to do so you can use options
key:
- uses: sobolevn/misspell-fixer-action@master
with:
options: '-rsvn src/'
You can also use the output produced by this action by default. Read more about outputs.
MIT.