hakadoriya-actions/hakadoriya-actions-final-newline-checker
A workflow to check missing final newline.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Maintainedlast commit Aug 23, 2025
- License
- Apache 2.0
Pinned Snippet
uses: hakadoriya-actions/final-newline-checker@d61736f98682cea149945c19fe05cc26b571ba91 # v0.0.3tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| paths | A list of substrings of file paths to include written in regular expressions (like on.push.paths) | no | "" |
| paths-ignore | A list of substrings of file paths to ignore written in regular expressions (like on.push.paths-ignore) | no | "" |
| skip-checkout | If true, skip the checkout step | no | false |
| skip-comment | If true, skip posting a comment to the pull request | no | false |
| fail-on-missing | Fail on missing final newline | no | true |
| debug | Debug mode | no | false |
| before | The commit SHA before the push (push trigger only) | no | ${{ github.event.before }} |
| after | The commit SHA after the push (push trigger only) | no | ${{ github.event.after }} |
| base-ref | The base branch of the repository (pull_request trigger only) | no | ${{ github.event.pull_request.base.sha }} |
| head-ref | The head branch of the pull request (pull_request trigger only) | no | ${{ github.event.pull_request.head.sha }} |
Outputs
| name | description |
|---|---|
| missing | If no missing final newline files, this value is 'true'. Otherwise, this value is 'false'. |
| missing-files | Missing final newline files |