GithubHelp home page GithubHelp logo

datadog / download-release-action Goto Github PK

View Code? Open in Web Editor NEW

This project forked from perfectslayer/download-release-action

0.0 1.0 1.0 1015 KB

Update download releases to latest available

License: Apache License 2.0

JavaScript 1.18% TypeScript 98.82%

download-release-action's Introduction

Download Release Action

This GitHub action updates meta releases, called download releases, to always provide the latest version for download.

Principle

The action scans for published non-draft releases with tags vX.Y.Z, find the latest for each major X version, and ensure the related download releases tagged download-latest_vX and download-latest refer to their latest versions. If not, it downloads the dd-java-agent.jar attachment from the latest version, upload it to the download releases and update their bodies to refer to their latest versions.

Usage

Add the action in your workflow as any other action:

jobs:
  update-download-release:
    name: Update download releases
    runs-on: ubuntu-latest
    steps:
      - name: Update releases
        uses: DataDog/download-release-action@latest

The action has two inputs:

  • github-token to provide a custom GitHub token (default ${{ github.token }}),
  • debug to log all GitHub client calls (default false).

They can be configured with a with map:

- name: Update releases
  uses: DataDog/download-release-action@latest
  with:
    - github-token: ${{ env.MY_TOKEN }}
    - debug: true

Development

First, you'll need to have a reasonably modern version of node handy. This won't work with versions older than 16, for instance.

Install the dependencies

$ npm install

Build the typescript and package it for distribution

$ npm run build && npm run package

Run the tests โœ”๏ธ

$ npm test

download-release-action's People

Contributors

perfectslayer avatar

Watchers

 avatar

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.