GithubHelp home page GithubHelp logo

duhow / download-github-release-assets Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 1.0 229 KB

Github Action to download GitHub release assets

License: MIT License

JavaScript 100.00%
artifact github-action github-actions github-release

download-github-release-assets's People

Contributors

bonastreyair avatar duhow avatar faubion-hbo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

faubion-hbo

download-github-release-assets's Issues

Unable to download release asset from private repository

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:
image

image

Unable to download files

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.

Unable to download assets by resource_id

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!

Unable to set target

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/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.