Clearly I'm doing something wrong - I'm getting a glob error that by no means makes sense to me. #115
-
I'm trying to migrate to mc-publish after issues with my previous workflows. I know the exact filename of the jar being uploaded, so I'm giving that directly as a glob in the files parameter: files: |
AdvancedBackups-forge-1.7.10-${{ steps.version.outputs.VERSION }}.jar In my current case, this fully resolves to However, mc-publish is spitting out an error:
The previous step is a simple ls, and it confirms the presence of the target file:
Third from the bottom, that's an exact match to the glob I've provided. My current mc-publish workflow is visible here. An erroring debug workflow run is visible here. Is there something obvious that I've missed? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
I was this close to having a stroke while I tried to find a Bohrbug your workflow has fallen victim to :D At first glance, everything appears fine, like everything should work. The same goes for the second, third, and all the subsequent glances. However, thankfully, I decided to replace your These are not files. These are all directories :D It seems that files: |
AdvancedBackups-forge-1.7.10-${{ steps.version.outputs.VERSION }}.jar You actually need: files: |
**/AdvancedBackups-forge-1.7.10-${{ steps.version.outputs.VERSION }}.jar Or, better yet, fix So, this is not really an issue with |
Beta Was this translation helpful? Give feedback.
I was this close to having a stroke while I tried to find a Bohrbug your workflow has fallen victim to :D
At first glance, everything appears fine, like everything should work. The same goes for the second, third, and all the subsequent glances. However, thankfully, I decided to replace your
ls
withls -l
, and the issue suddenly became painfully obvious:These are not files. These are all directories :D
It seems that
dawidd6/action-download-artifact
, which you use, doesn't extract archives in place. Instead, it places their contents in a directory with the same name as the base name of the archive in question. So, for example, instead of: