duhow / download-github-release-assets Goto Github PK
View Code? Open in Web Editor NEWGithub Action to download GitHub release assets
License: MIT License
Github Action to download GitHub release assets
License: MIT License
I'm getting the following error, and I think this may be due to the repository being private:
Using GitHub repository: intercede-free/MyProdBuilder
Getting release by tag: 5.6.55
Error: Not Found
There's no mention of limitations in the documentation, but should there be?
I'm referencing a private repository in the same organisation, and I'm sure I'm using the correct tag parameter:
Run duhow/download-github-release-assets@v1
with:
repository: ***
token: ***
tag: v0.1.1
files: microservice_wrapper-*-py3-none-any.whl
target: microservice_wrapper-0.1.1-py3-none-any.whl
env:
PYTHON_VERSION: 3.9
PIP_DISABLE_PIP_VERSION_CHECK: 1
pythonLocation: /opt/hostedtoolcache/Python/3.9.9/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.9.9/x64/lib
Using GitHub repository: ***
Getting release by tag: v0.1.1
1 assets available.
1 assets selected.
Downloading microservice_wrapper-0.1.1-py3-none-any.whl with 8260 bytes to microservice_wrapper-0.1.1-py3-none-any.whl
(node:544) UnhandledPromiseRejectionWarning: HttpError: <Error><Code>AccessDenied</Code><Message>Multiple auth mechanisms are not allowed; please use either query parameters or an Authorization header</Message><Resource>github-production-release-asset-2e65be</Resource></Error>
at /runner/_work/_actions/duhow/download-github-release-assets/v1/webpack:/download-github-release-assets/node_modules/@octokit/request/dist-node/index.js:86:1
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at /runner/_work/_actions/duhow/download-github-release-assets/v1/webpack:/download-github-release-assets/src/main.js:133:1
(node:544) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:544) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
First, thank you for this great custom action.
Just wanted to share an issue I came across recently. When trying to download assets specifying a resource_id
, the action passes the parameter as resourceId
to the call to the octokit REST API.
The expected parameter name is resource_id
(octokit.rest.repos.getRelease)
The line of code in question from main.js is:
44: release = await octokit.rest.repos.getRelease({ owner, repo, releaseId });
see here
Maybe you could change the line to:
44: release = await octokit.rest.repos.getRelease({ owner, repo, resource_id: releaseId });
Or alternatively, rename the resourceId
var as resource_id
.
Thanks again for sharing your work!
I can download assets using this action, but if I try to set a target
I get errors.
When setting target to C:\ I get:
Error: EPERM: operation not permitted, open 'C:\'
When setting target to C:\tool I get:
Error: EISDIR: illegal operation on a directory, open 'c:\tool'
Whether or not I set a target I always get four of these warnings as well (and I'm not sure if it's related):
Warning: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.