-
Notifications
You must be signed in to change notification settings - Fork 34
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
allow_override flag does not work for assets #2
Comments
I've recreated the action by myself |
If I understand correctly, you have a I don't think I've seen that pattern done on Github Releases before, is that a common thing? |
Yes, that's my case. I'm building the preview of the LaTeX paper when pushed to the master and publish it as the "Latest draft" preview release. Hadn't saw this approach before and maybe it is not perfect one but it fits my case 😄 Anyway the issue is that |
It should allow you to override everything except assets and I actually thought about asset override, but figured that if upload of an asset with the same name is attempted more than once, it's an error, that should be shown to the user. Guess not always 😅. As for the other things, I'll do more testing to see what's going on. |
I'm not saying that my approach is correct. It sounds reasonable that assets are immutable. Maybe only in the "draft" release? |
About Plus seems like update action does work properly for other fields: https://github.com/meeDamian/github-release/commit/bb75309cfc0b7a207268b4a7a57eb66ef8e85e23/checks https://github.com/meeDamian/github-release/releases/tag/v0.0.0-test-update And I still have to think about overriding assets 🤔. |
|
Does this comment still apply? I see that the deprecation notice was removed a few days ago, and I agree with the new note! Problem with using actions/create-release and actions/upload-release-asset is it doesn't allow for overwriting releases. I think... |
You can always go with mine 🤷♂️ https://github.com/majkrzak/create-release |
Updating the release fails when asset is beeing updated:
After manually removing the asset it seems that
tag
andcommitsh
was also not updated.The text was updated successfully, but these errors were encountered: