You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
[Jira]release version & create new version
v1.2
This action release version & create new version in Jira
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)
https://developer.atlassian.com/cloud/jira/platform/basic-auth-for-rest-apis/
- Generate an API token for Jira using your Atlassian Account.
- Build a string of the form
useremail:api_token
. (ted@prnd.co.kr:xxxxxxx) - 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
new-version
: new version name.
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 }}