-
Notifications
You must be signed in to change notification settings - Fork 4
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
Action is renaming uploaded files, not preserving original name #34
Comments
Thank you for sharing. This is indeed weird as there is nothing that explicitly changes the name of the file, the only path modifications are stripping off the source root and prefixing any destination root. I'll take a look at this today, what runner are you using? |
Latest Ubuntu |
If you need to be up and running now, try the Docker-based Azure Blob upload action from Matthew Fisher https://github.com/marketplace/actions/azure-blob-storage-upload. The parameters are every similar to mine because the Azure SDK is the same for everyone. In the meantime, I'll continue to test this. Regarding the timestamp filename, that value seems to be coming from the environment variable However, I do have an ideas about where the 'als' part is coming from. Do you have a previous folder name that ends in azblobupload/finals/filename.zip The ../ in the source path is breaking the file path creation here Action-AzureBlobUpload/src/main.ts Lines 61 to 106 in 8ce3f6e
|
I'm uploading the files as artifacts so my short term solution is to manually download & upload the files. Not ideal, but the workflow is only manually run so not a big issue. The timestamp is part of the filename I'm passing into the action. The als may be coming from the word "fundamentals" which is one of the two things I'm masking in the OP of this issue... but there's another word used that didn't generate that... which is strange. The reason for the ".."in the filename is because of the variable |
The workspace is typically one level down from where the commands are run. So you should be able to just use:
Let me know how that goes. |
Also, I have This Prebuilt TypeScript Playground script that mimics the Action's work. I use to test certain files paths to see what the outcome would look like without having to make a commit to GitHub, run the Action and wait for every tiny change Put your string paths in these called out variables, run it and check out Logs pane |
I'm also running into this issue. I suspect leading and trailing slashes in |
Thank you, I will review it today and push out a new release. |
I have validated, built, test and released v1.8.3 to GitHub Actions Marketplace
If you'd like to see the specifics:
|
@LanceMcCarthy I chose to implement the upload using a different method back then. Bit swamped and the workflow works now so no offense if I don't get a chance to go back and test it out ¯_(ツ)_/¯ |
@andrewconnell no offense taken! If you start a new project and need this again, I'm happy to help. |
I have two files in a folder to upload to the root of an existing container (no sync, no cleaning). I can't figure out looking at the code why this action is renaming my files. Here's the debug output (masking some names with
$
because these are customer product downloads).As you can see from the following logs, it's replacing my filenames with timestamps (YYYYMMDD) and appending
als
to one of them. I can't see in your code where you're using a datestamp, so I'm assuming that's coming from my filename... it's almost like it's having issues with the underscore in my filename... but why?The text was updated successfully, but these errors were encountered: