Giter Site home page Giter Site logo

download-release-asset's Introduction

download-release-asset status

Download release assets

Use this action to download assets from a release in any github project that you can access.

Usage

To download any test-*.txt file into the pwd, from the latest release within the current repository:

steps:
  - uses: PlasmoHQ/[email protected]
    with:
      files: test-*.txt

To download any test-*.md and foo-*.zip file from another repository, with a specific release tag, into a download directory:

steps:
  - uses: PlasmoHQ/[email protected]
    with:
      files: |
        test-*.md
        foo-*.zip
      repository: PlasmoHQ/test-repo
      tag: v1.0.0
      target: download/
      token: ${{ secrets.GITHUB_TOKEN }}

Implementation notes

We decided to build this action because when searching for a "github release file download" action in a couple of search engine, we couldn't find one that fits our need.

While implementing the code to download the asset however, we found this issue octokit/rest.js/issues/6#issuecomment-477800969, which has a reference to an issue pointing to download-github-release-assets.

Since that action does not use TypeScript, we decided to go ahead with the release of our own.

Acknowledgements

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.