Skip to content

halloverden/git-tag-to-jira-release-action

Repository files navigation

Git tag to Jira release action

GitHub Super-Linter CI Check dist/ CodeQL Coverage

Creates a Jira release based on a Git tag.

How it works

  1. Finds the latest tag defined on HEAD
  2. Finds all Jira issue keys in the tag message
  3. Creates a release with the tag as name and sets fixVersion on all the issues found to this version

Example action

name: create-jira-release

# Controls when the workflow will run
on:
  push:
    tags:
      - '*'

jobs:
  create:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      - name: Create Jira release from git tag
        uses: halloverden/git-tag-to-jira-release-action@v1
        with:
          jira_host: 'yourcompany.atlassian.net'
          jira_username: '[email protected]'
          jira_password: '${{ secrets.JIRA_PASSWORD }}'
          jira_project: 'APP'