upload-to-release
upload-to-release copied to clipboard
Getting error 400 Not Found
Hi, I'm trying to use your extension in this workflow. I've tested and the file does indeed exist, so I was wonder you knew what was up?
Run JasonEtco/upload-to-release@master
with:
args: slyblime.zip
env:
GITHUB_TOKEN: ***
/usr/bin/docker run --name e44b6bdb9d1eae47afa8bbe864f34e5580_339586 --label 5588e4 --workdir /github/workspace --rm -e GITHUB_TOKEN -e INPUT_ARGS -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/slyblime-test-repo-do-not-use/slyblime-test-repo-do-not-use":"/github/workspace" 5588e4:4b6bdb9d1eae47afa8bbe864f34e5580 slyblime.zip
https://uploads.github.com/repos/s-clerc/slyblime-test-repo-do-not-use/releases/40587859/assets?name=slyblime.zip
curl: (22) The requested URL returned error: 400 ```
I miss the same question, have you solved it?
Try something like this:
- name: Upload to release
uses: JasonEtco/upload-to-release@master
with:
args: ./myfile.zip application/zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
I was facing the 400 with a .zip file too.
I can confirm that adding application/zip solved it for me.
Glad that I found this hint. ☺️