Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
edit

GitHub Action

[Jira]release version & create new version

v1.2

[Jira]release version & create new version

edit

[Jira]release version & create new version

release version & create new version in Jira

Installation

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

              

- name: [Jira]release version & create new version

uses: PRNDcompany/jira-release@v1.2

Learn more about this action in PRNDcompany/jira-release

Choose a version

Jira Release action

This action release version & create new version in Jira

Inputs

  • domain: domain name. ex) https://your-domain.atlassian.net.
  • project: project id.
  • version: version name. ex) Customer 1.1.0
  • auth-token: auth token key.(Not Api key)

Auth Token

https://developer.atlassian.com/cloud/jira/platform/basic-auth-for-rest-apis/

  1. Generate an API token for Jira using your Atlassian Account.
  2. Build a string of the form useremail:api_token. (ted@prnd.co.kr:xxxxxxx)
  3. BASE64 encode the string.
  • Linux/Unix/MacOS:
echo -n user@example.com:api_token_string | base64
  • Windows 7 and later, using Microsoft Powershell:
$Text = ‘user@example.com:api_token_string’
$Bytes = [System.Text.Encoding]::UTF8.GetBytes($Text)
$EncodedText = [Convert]::ToBase64String($Bytes)
$EncodedText

Outputs

  • new-version: new version name.

Example usage

name: Jira Release
on:
  push:
    branches: [ main ]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - name: Jira Release
      id: release
      uses: PRNDcompany/jira-release@v1.0
      with:
        domain: 'your-domain'
        project: 'HDA'
        version: 'Customer 4.1.0'
        jira-token: 'xxxxxxxx'
    - name: Print New Version
      run: |
        echo ${{ steps.release.outputs.new-version }}