Giter VIP home page Giter VIP logo

gitflow-release-action's Introduction

Gitflow release action

GitHub Action implementing the Gitflow release process.

Prerequisites

If you have configured Branch protections, you will need a token with permissions to bypass these protections. In this article is well explained how to authenticate a GithubAction and obtain an installation token. On the other hand, if you are using a GithubApp as committer (git_user and git_email), remember the user will be the app name and the email <app_name>@users.noreply.github.com. For more details read the official documentation here

Finally, remember to enable Read-Write permissions for GithubActions in your repository.

Inputs

command

Required Options are start, finish or start_finish.

tag

Required Label to use for releasing.

git_user

Optional Git committer identity.

git_email

Optional Git committer email.

main_branch

Optional Branch name storing releases history. Default master.

develop_branch

Optional Branch name used to integrate feature branches. Default develop.

allow_empty_releases

Optional Allow releases branch with 0 commits ahead your main branch. Default false.

ignore_commits_from_author

Optional Ignore commits from a specific author. Default include_all_authors.

ignore_commits_grep

Optional Ignore commits with specific message content. Default include_all_messages.

Outputs

result

It returns success, fail or skipped (in case there are 0 commits and allow_empty_releases is false).

commits

It returns the number of commits included in the release in case of ending with a success.

Example usage

For start and finish a release in one command

uses: HDBandit/[email protected]
with:
  command: start_finish
  tag: 1.0.0
  git_user: github-actions # Optional
  git_email: [email protected] # Optional
  main_branch: master # Optional
  develop_branch: develop # Optional
  allow_empty_releases: false # Optional
  ignore_commits_from_author: johndoe # Optional
  ignore_commits_grep: [skip] # Optional

For start a release

uses: HDBandit/[email protected]
with:
  command: start
  tag: 1.0.0
  git_user: github-actions # Optional
  git_email: [email protected] # Optional
  main_branch: master # Optional
  develop_branch: develop # Optional
  allow_empty_releases: false # Optional
  ignore_commits_from_author: johndoe # Optional
  ignore_commits_grep: [skip] # Optional

For finish a release

uses: HDBandit/[email protected]
with:
  command: finish
  tag: 1.0.0
  git_user: github-actions # Optional
  git_email: [email protected] # Optional
  main_branch: master # Optional
  develop_branch: develop # Optional
  allow_empty_releases: false # Optional
  ignore_commits_from_author: johndoe # Optional
  ignore_commits_grep: [skip] # Optional

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.