week 01 problems #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: file_name_checking | |
on: | |
pull_request: | |
# This command allows us to run the Action automatically from the Actions tab. | |
workflow_dispatch: | |
jobs: | |
Validate_file_names: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Filenames linter | |
# You may pin to the exact commit or the version. | |
# uses: csunibo/filenames-linter@d1475a707b90863f30986889e1bdec2cd224783d | |
uses: csunibo/[email protected] | |
with: | |
# The path to a directory to check the filenames. | |
path: ./ | |
# Whether the directory should be inspected recursively or not. | |
pattern: ^(?!.*[\\/:\*\?\"<>\|]).*[^\\/. ]$ | |
recursive: true |