Get latest Jira version (released or unreleased) for a project.
This action gets the latest Jira version for a given Jira project. You can specify whether or not you want the latest unreleased version only.
e.g.
# ...
jobs:
get-next-app-version:
name: Get App Version Number
runs-on: ubuntu-latest
outputs:
version-number: ${{ steps.get-version.outputs.name }}
steps:
- id: get-version
uses: jimyang-9/[email protected]
with:
project: ABC
subdomain: example
email: ${{ secrets.JIRA_EMAIL }}
api-token: ${{ secrets.JIRA_TOKEN }}
unreleased: true
do-something-with-version:
name: Build App
runs-un: ubuntu-latest
needs: get-app-version
steps:
- uses: foo/build-app
with:
version-number: ${{ needs.get-next-app-version.version-number }}
Name | Description |
---|---|
project |
The Jira project id or key (see projectIdOrKey in the documentation) |
subdomain |
The subdomain of your Jira instance (see site-url in the documentation) |
email |
Email address associated with api-token (see basic authentication documentation for details) |
api-token |
Api token associated with email address (see basic authentication documentation for details) |
unreleased (optional) |
Determines whether or not to restrict the latest version to unreleased versions only |