Coder Social home page Coder Social logo

keisukeyamashita / setup-release Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 2.0 882 KB

๐ŸŽ GitHub Action that downloads a release and provision for later job usage

Home Page: https://github.com/marketplace/actions/download-provision-release

License: MIT License

TypeScript 95.62% JavaScript 4.38%
github-actions utility release

setup-release's Introduction

Setup Release

CI GitHub Marketplace Mergify Status

A GitHub Action that downloads a release and provision for later job usage. You don't need to download assets and extract, add system pathes, this action will do it for you with very easy configurations.

Usage

      - name: Get conftest CLI
        uses: KeisukeYamashita/[email protected]
        with:
          repository: open-policy-agent/conftest

Dowload and provision tagged and latest release

This is just an example to show one way in which this action can be used.

on: pull_request
jobs:
  provision-tagged-release:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: KeisukeYamashita/[email protected]
        with:
          repository: spinnaker/kleat
          tag: v0.3.0
      # Use the "kleat" command in the later steps
  provision-latest-release:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: KeisukeYamashita/[email protected]
        with:
          repository: spinnaker/kleat
      # Use the "kleat" command in the later steps

Action inputs

Name Description Default
arch The asset arch target. amd64
archive Archive type. Currently, tar.gz, darwin and zip is supported. tar.gz
installPath Path to install the extracted asset UUID
repository The GitHub repository where it is released true
number The number of the issue to post. github.event.issue.number
platform Assets target platform. linux, darwin is supported. linux
tag GitHub tag of the release latest
token GITHUB_TOKEN or a repo scoped PAT. GITHUB_TOKEN

Note: You cannot use this action if the asset name is not included in the asset name because the search is based on the three inputs(arch, archive and platform) in the asset.name field.

Install Path

The extracted assets will be stores in /tmp/${UUID} by default. It is recommented to use this if you have multiple stages that uses this action. But, if you want to configure it, you can use installPath.

Action outputs

Name Description
asset-id ID of the downloaded, provisioned asset
asset-name Name of the downloaded, provisioned asset
restore-from-cache If restored from cache or not
tag Tag that downloaded

Accessing issues in other repositories

You can close issues in another repository by using a PAT instead of GITHUB_TOKEN. The user associated with the PAT must have write access to the repository.

License

MIT

setup-release's People

Contributors

keisukeyamashita avatar dependabot[bot] avatar mergify[bot] avatar dgschwindturo avatar

Stargazers

odanado avatar Jacob Alheid avatar Eishin Suga avatar Nathan Essex avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

setup-release's Issues

Node.js 12 GitHub Actions are deprecated

Seeing this warning at Lint time : Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. Please update the following actions to use Node.js 16: KeisukeYamashita/[email protected]

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.