Skip to content
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

Failing to upload with ~ #852

Open
philippemnoel opened this issue Jul 29, 2024 · 1 comment
Open

Failing to upload with ~ #852

philippemnoel opened this issue Jul 29, 2024 · 1 comment

Comments

@philippemnoel
Copy link

Hi,

I'd like to name the asset I upload to my GitHub Release something~jammy_amd64.deb. When I try to get the ~ to show, it always replaces it. I've tried escaping the character, URL encoding, not escaping, double quotes, nothing is wroking. Is it possible to upload a reset with this character not being replaced/removed?

@shogo82148
Copy link
Owner

Thank you for using my action.

Is it possible to upload a reset with this character not being replaced/removed?

No. It is a specification of the GitHub API.

https://docs.github.com/en/rest/releases/assets?apiVersion=2022-11-28#upload-a-release-asset
GitHub renames asset filenames that have special characters,
non-alphanumeric characters, and leading or trailing periods.
The "List assets for a release" endpoint lists the renamed filenames.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants