Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting exclusions via inputs in GitHub Action #17

Closed
derevnjuk opened this issue Jun 6, 2022 · 0 comments · Fixed by #18 or #19
Closed

Allow setting exclusions via inputs in GitHub Action #17

derevnjuk opened this issue Jun 6, 2022 · 0 comments · Fixed by #18 or #19
Assignees
Labels
Type: enhancement New feature or request.

Comments

@derevnjuk
Copy link
Member

GitHub actions should provide the ability to set exclusion via an option exclusion. This option should accept an array of exclusions similar to API calls.

If no exclusions are specified, one default exclusion is added with the following regex:
(?<excluded_file_ext>(\/\/[^?#]+\.)((?<image>jpg|jpeg|png|gif|svg|eps|webp|tif|tiff|bmp|psd|ai|raw|cr|pcx|tga|ico)|(?<video>mp4|avi|3gp|flv|h264|m4v|mkv|mov|mpg|mpeg|vob|wmv)|(?<audio>wav|mp3|ogg|wma|mid|midi|aif)|(?<document>doc|docx|odt|pdf|rtf|txt|ods|xls|xlsx|odp|ppt|pptx)|(?<font>ttf|otf|fnt|fon))(?:$|#|\?))

The exclusion is added for any method.

User can suppress the default exclusion by passing an empty array as an argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: enhancement New feature or request.
Projects
None yet
1 participant