check-trailing-spaces - Checks for trailing spaces in text files.
This Github action checks the files being submitted and flags any files that contains lines with trailing spaces.
-
check_all_files
: Set to 1 to check all files in the Github directory, not only the modified files. -
source_directory
: Whencheck_all_files
is set, use this directory as the root of the tree to be checked, instead of the Git repository root. -
pr_number
: The number of the PR to check. There's usually no need to change this. The default is the current PR number.
.github/workflows/main.yml
on: [push]
jobs:
example-workflow:
name: Example workflow using the check-trailing-spaces action.
steps:
- name: Checkout repository contents.
uses: actions/checkout@v1
- name: Check lines in files for trailing whitespaces.
uses: marcopaganini/check-trailing-spaces@v1
- with: # Most people won't need this.
check_all_files: 1
source_directory: /ext
Marco Paganini (https://github.com/marcopaganini)
Jul/2021