Skip to content
play

GitHub Action

jira-release-action

v1.0.2 Latest version

jira-release-action

play

jira-release-action

Create or Update a Jira release

Installation

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

              

- name: jira-release-action

uses: charpi/[email protected]

Learn more about this action in charpi/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 )
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: charpi/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