batista / lint-filenames Goto Github PK
View Code? Open in Web Editor NEWA simple github action that validates if all files in a given folder match the given regex pattern.
License: MIT License
A simple github action that validates if all files in a given folder match the given regex pattern.
License: MIT License
I'm trying to use this action to validate the filenames in a folder against a regex. The run fails after 2 seconds with no clear error message.
Output of the action:
##[debug]Evaluating condition for step: 'Validate migration filenames'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Validate migration filenames
##[debug]Loading inputs
##[debug]Loading env
Run batista/lint-filenames@v1
with:
path: ./db-migrations/flyway/migrations
pattern: ^[V|U|R]\d*?__[A-Za-z0-9_]*\\.sql$
====================
| Lint Filenames |
====================
ℹ️ Path: './db-migrations/flyway/migrations'
ℹ️ Pattern: /^[V|U|R]\d*?__[A-Za-z0-9_]*\\.sql$/
Error: Error: Execution failed, see log above. ❌
##[debug]Node Action run completed with exit code 1
##[debug]Finishing: Validate migration filenames
Can you see what I'm doing wrong @batista ?
For readability sake, the readme should be targeted only to the consumer of this extension.
We should extract a contributing file with guidelines for those that want to contribute and/or fork.
Nice Action, more or less what I was looking for.
Interested to hear why you had intentionally opted to not include any files in sub-folders or, alternatively, give the user an option to mach files by glob pattern or something similar ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.