Open oldShatteredHands7 opened 3 months ago
Is it possible that your terminal is expanding wildcards to all filenames?
Your configuration equates to the following command:
az storage blob upload-batch --source deploy apps-test --sas-token ${{ secrets.SASToken }} --account-name storage --pattern *.tgz --destination-path searchApps --overwrite true
If globstar expansion is enabled in your terminal, it'd expand the wildcard to --pattern file1.tgz file2.tgz file3.tgz
, which would not be valid in this context.
I am not sure if this is a bug or working as designed.
I have a couple of .tgz in the working directory. Based on the user input selected or all .tgz files are moved into directory ./deploy.
My issue is that the upload will fail if not all .tgz files are moved into ./deploy with error message
ERROR: unrecognized arguments: <all .tgz filenames without path>
e.g.(ERROR: unrecognized arguments: file1.tgz file2.tgz)A workaround is to remove the pattern from extra_args.
I don't get any helpful information from the debug logs but I guess that the pattern matching will include files from the parent directory and since these files do not exist in ./deploy the command will fail
My upload configuration is as follows: