Skip to content
play

GitHub Action

Jira Release Action v2

v2.0.6 Latest version

Jira Release Action v2

play

Jira Release Action v2

Create or Update a Jira release

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Jira Release Action v2

uses: armona/[email protected]

Learn more about this action in armona/jira-release-actions

Choose a version

Jira Release Action

jira-release-action status

This Github action connects your CI and your Jira instance by creating releases as part of your CI process.

The action can either mark an existing release as released or directly create a new one base on a tag name. The action can also automatically update the 'Fix Version' field of a list of Jira issues.

Usage

Input

Name Description Required
email Jira login Y
api_token Jira api token Y
subdomain Jira cloud instance. '[domain].atlassian.net' Y
jira_project Key of the jira project Y
release_name Name of the release Y
create Boolean. Create automatically a jira release N (default: false )
release Boolean. Create the Jira release as release (or unreleased) N (default: true )
tickets Comma separated list of ticket IDs to include in the release. Update the first release-version. N (default: '')
dry_run Dump actions that would be taken N (default: false)

Example

jobs:
 get-next-app-version:
    name: Get App Version Number
    runs-on: ubuntu-latest
    outputs:
      version-id: ${{ steps.get-version.outputs.id }}
    steps:
      ...gets the latest version

  release-next-app-version:
    name: Release Jira Version
    runs-on: ubuntu-latest
    steps:
      uses: armona/jira-release-action@latest
      with:
        email: ${{ secrets.JIRA_EMAIL }}
        api-token: ${{ secrets.JIRA_TOKEN }}
        subdomain: example
        release_name: ${{ needs.get-next-app-version.outputs.version-id}}

Reference