Simply create JIRA releases based on your github releases
###Example workflow:
name: ci
on:
release:
types: [published]
jobs:
create-jira-release:
runs-on: ubuntu-latest
steps:
- name: create release
uses: Rorychan/[email protected]
with:
jira-server: 'https://example.atlassian.com'
jira-email: '[email protected]'
jira-api-token: ${{ secrets.JIRA_API_TOKEN }}
project-name: 'EXA'
release-name: ${{ github.event.release.name }}
###Prerequisities: ####This action should be run only on release github event. You have to create jira-service-user and create API token to be able to use JIRA API.
###Parameters description:
| Name | Description |
|---|---|
| jira-server | URL for you JIRA cloud server |
| jira-email | jira user email |
| jira-api-token | API token that you have created for your jira user |
| project-name | KEY of the JIRA project, do not use project name |
| release-name | Name that JIRA release will take, usually is a github release name |
| is-released | [Optional] Define should the release be in "Released" status. Default is false |
###How to create a release:
- Firstly you need to create tag in your repo, tag should be created on the branchthat you want to release.
git tag v0.0.1 - Then you need to push your tag to your origin
git push origin v0.0.1 - Go to your repo page and create a release