-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Can't use action to check only dotfiles #76
Can't use action to check only dotfiles #76
Comments
Update: I got it to work if I added a second file type. So for instance using this as the option in the action works:
So this is more minor, then; it only fails if |
As an aside, when using |
Did you try including the quotes in the argument for the action? It's probably mapping |
That sounds like a bug we can address at urlchecker-python. |
Yeah, I tried all of the following:
in the That's a good test to add though. |
I think you’d need the double quotes for the action, the first set (whatever they are) will be removed. You can also just test the PR I opened action (via its branch). |
OK, but I definitely tried |
Oh or do you mean |
Two sets of quotes, one single one double like ‘“.*”’ |
We are essentially quoting the quotes. |
Ah I understand now. I tried it and no go -- results in "No urls collected". I tried both In both cases the output in the GitHub action was identical -- i.e. Meaning, if I'm understanding it correctly, that single quotes get stripped, but double quotes both get preserved. Strange! |
Hmm, the last thing I'd try is the branch I created (without any special quotes). If that doesn't work, we'll need to rethink this. |
OK -- will have to try tomorrow. |
After running a bunch of tests, I realized that the @vsoch I think this issue is related to the python library input parsing urlchecker-python/urlchecker/client/check.py#L51. You can also take a look at some of my tests with the new version here. |
I tried |
In regards to the omitted items in "Found files in workspace" @vsoch mentioned above, that may be an issue with urlchecker-python, but it only shows up in the GitHub action output (it's not a part of the python script's output). |
should we try something different here or is the workaround okay? Should we just add this pattern to the docs perhaps for others to easily find? |
I don't mind using the workaround, and if you add it to the docs then it becomes official and no longer a workaround, right? 😄 |
Haha, indeed! Here is a suggested addition: #97 |
Hey, me again 😄
I ran urlchecker-python v0.22 on a directory with dotfiles (
.editorconfig
, etc.) using this command:urlchecker check --file-types '.*' .
That works fine.
Then I ran urlchecker-action v0.2.3, which as I understand includes the new version of the python script, with the following option:
file_types: '.*'
And the action simply skips all files and "passes" with "Done. No urls were collected."
Notably, the output of the action's build (on GitHub) says:
file types: ['.']
So I think it is removing the asterisk entirely. I tried using double quotes, using no quotes, escaping the asterisk with a backslash, and using a double-asterisk, but the result was the same each time.
Any thoughts?
The text was updated successfully, but these errors were encountered: