GithubHelp home page GithubHelp logo

lizardbyte / setup-release-action Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 97 KB

Reusable action for LizardByte to parse changelog, and get release properties.

License: MIT License

Dockerfile 2.93% Python 97.07%
github-action python

setup-release-action's Introduction

setup-release-action

GitHub Workflow Status (CI) Codecov

A reusable action to set up release inputs for GitHub Actions. This action is tailored to the @LizardByte organization, but can be used by anyone if they follow the same conventions.

The action does the following:

  • Get the latest push event to the default branch
  • Provide some outputs to use for the release step

Simple Usage

- name: Setup Release
  id: setup_release
  uses: LizardByte/setup-release-action@master
  with:
    github_token: ${{ secrets.GITHUB_TOKEN }}

Advanced Usage

- name: Setup Release
  id: setup_release
  uses: LizardByte/setup-release-action@master
  with:
    fail_on_events_api_error: true
    github_token: ${{ secrets.GITHUB_TOKEN }}

Inputs

Name Description Default Required
dotnet Whether to create a dotnet version (4 components, e.g. yyyy.mmdd.hhmm.ss). false false
event_api_max_attempts Maximum number of attempts for the GitHub Events API. 10 false
fail_on_events_api_error Whether to fail if the GitHub Events API returns an error. Will only fail for push events. true false
github_token GitHub token to use for API requests. true
include_tag_prefix_in_output Whether to include the tag prefix in the output. true false
tag_prefix The tag prefix. This will be used when searching for existing releases in GitHub API. v false

Outputs

Name Description
publish_release Whether or not to publish a release
release_commit The commit hash for the release
release_tag The tag for the release (i.e. release_version with prefix)
release_version The version for the release (i.e. yyyy.mmdd.hhmmss)

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.