Closed
Description
Description
The actions/upload-artifact@v3
action (or the actions toolkit more specifically) apparently uses path.join
to generate the artifact file names, resulting in a backslash character being inserted between the name and the file name/path if the workflow runs on Windows. The upload then produces an error status similar to this on the server:
::error::Unexpected response. Unable to upload chunk to http://xyz.org/api/actions_pipeline/_apis/pipelines/workflows/53/artifacts/b3900898524801ca942773cfd2301589/upload?itemPath=library-windows-x86_64%255CFreeImageLib.pdb
##### Begin Diagnostic HTTP information #####
Status Code: 400
Status Message: Bad Request
Header Information: {
"server": "nginx",
"date": "Wed, 27 Sep 2023 15:11:51 GMT",
"content-type": "text/plain; charset=utf-8",
"content-length": "22",
"connection": "keep-alive",
"x-content-type-options": "nosniff"
}
###### End Diagnostic HTTP information ######
::warning::Aborting upload for C:\Users\gitlab3\act_builds\e616ea9d8027ca3a\hostexecutor\Source\FreeImageLib\x64\Release\FreeImageLib.pdb due to failure
::error::aborting artifact upload
Gitea Version
1.21
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
2.34.1
Operating System
Linux
How are you running Gitea?
Using the official download binary and using act_runner 0.2.6 on Windows.
Database
MySQL/MariaDB