-
-
Notifications
You must be signed in to change notification settings - Fork 110
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 get file_glob to work #33
Comments
I think you don't have to escape the asterisk. |
That is not an escape. For example, with |
@svenstaro, do you have any input on this issue please? |
@ba32107 did you find a solution? I have folder ls artifacts/ which results in DaKanji_android_arm64-v7a.zip
DaKanji_android_arm64-v8a.zip
DaKanji_android_bundle.zip
DaKanji_android_x86_64.zip
DaKanji_win.msix
DaKanji_win.zip However, when I use - name: Upload to github releases
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/DaKanji_*
file_glob: true
tag: beta
prerelease: true
overwrite: true
body: |
IMPORTANT: this is a pre-release, you should expect some bugs nothing gets uploaded to my release section, only the release with the body gets created. |
The image ships with a pre-authenticated |
@retorquere thank you I will try it in the coming days |
@CaptainDario no I could not make it work, I'm using the workaround mentioned in my issue |
@ba32107 I ended up using the github cli, much smoother experience and more importantly it works. @retorquere Thanks a lot for the github cli tip, works like a charm after trying for hours to get this workflow working! |
this https://github.com/FreeCAD/FreeCAD-Bundle/blob/5720f1fca062579e198554629981f255ea9e3f45/.github/workflows/freecad_bundle.yml#L153 @svenstaro did the rules for file glob change with the last update? |
Ah yes, there's been a regression with glob v8 I think. I will push a fix to master. Could you test it directly from master before I make a release? |
Damn, I'll try to take a look soon. I think it has something to do with this: isaacs/node-glob#467 Do you perhaps have some time to work on this? I don't know when I can get to it. |
isaacs/node-glob#480 also explains it a little, seems to be just a matter of using / instead of \ , I'm testing that now https://github.com/adrianinsaval/FreeCAD-Bundle/actions/runs/3958854927/jobs/6780920316 I think this manifested also due to upgrading to node16 as this may match glob ^7 to a higher version (that already had this issue) than with node12, going back to node12 is not feasible so I think it's best to move to the current version of glob and we deal with this difference downstream |
it was introduced here for the v7 series: isaacs/node-glob@c663c7d so since v7.2.3 |
Is this good for you now? Is there anything you'd suggest to change in this repo? |
I think it's good as is, maybe add a warning that the glob pattern has to use / even on windows |
…theta in dplus-installer.yml changed '\' to '/' according to svenstaro/upload-release-action#33. Hopefully this works Signed-off-by: Eytan Balken <[email protected]>
Hi!
Thanks a lot for this action, it's very useful. I'm not sure if this is a bug or I'm doing something wrong.
Here's (part of) my workflow:
I have two jobs, one for Windows, the other for Linux. However
file_glob
doesn't work for either:The working directory is definitely set correctly (because the build script themselves can be found), and the
dist
directory definitely exists. What am I doing wrong?My current workaround is to use full paths, which does work:
The text was updated successfully, but these errors were encountered: