-
Notifications
You must be signed in to change notification settings - Fork 72
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
Bit hard to figure out what to type for a local file on windows in installer-url #341
Comments
There is this:
but that is on Ubuntu so it wasn't obvious for me what to do on Windows (use forward slashes not backslashes). |
One more note is that the path to the file must be absolute. A relative path failed. |
I cannot confirm your findings here. I have a running action with the following URL:
which does not have triple |
Here are the various commits that show what I tried: moorepants/anaconda-dee-config#1 It works now, so I will stick with the triple and forward slashes. |
I spent quite some time this morning figuring this out as it wasn't obvious from the docs or examples. It may be obvious for a Javascript developer that knows how this works:
which returns:
taken from: https://www.geeksforgeeks.org/node-js-url-fileurltopath-api/
I finally got a local exe to build on a Github action with:
I can also probably remove the full path, but the key things are 1) use forward slashes, even if you are on windows and 2) use three forward slashes after
file:
.It could be helpful to give an example of this in the docs of this repo. Thanks for the action!
The text was updated successfully, but these errors were encountered: