Giter Site home page Giter Site logo

ryan-knowles / actions-github-release Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rez0n/actions-github-release

0.0 1.0 1.0 5 KB

Github Action that able to get the release version of the remote repository in your Actions workflow

Dockerfile 18.89% Python 81.11%

actions-github-release's Introduction

GitHub Actions: Get Github release

This Action able to get latest release version (tag) of the remote repository.

Configuration

Inputs

Name Description Example
repository The Github owner/repository nodejs/node
type The release type (prerelease or stable) stable
token Github auth token (default variable for each aciton session) ${{ secrets.GITHUB_TOKEN }}

Possible values for type input

  • stable - Get the stable latest release
  • prerelease - Get the latest prerelease
  • latest - Get the really latest release with no matter is it stable or prerelease

Outputs

Action outputs variable release with tag name of release.

Usage example

on:
  push:
    branches: [ main ]

jobs:
  build:
    name: Build
    runs-on: ubuntu-latest
    steps:
    
    - name: Get latest release of NodeJS
      uses: rez0n/actions-github-release@main
      id: node_release
      env:
        token: ${{ secrets.GITHUB_TOKEN }}
        repository: "nodejs/node"
        type: "stable"
        
    - name: Build image
      uses: docker/build-push-action@v1
        with:
          ...
          dockerfile: Dockerfile
          tags: latest, ${{ steps.node_release.outputs.release }}

actions-github-release's People

Contributors

rez0n avatar ryan-knowles avatar

Watchers

 avatar

Forkers

ukd1

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.