- This action update JIRA issues as
Done
and release project version
Name | Required | Description | Default |
---|---|---|---|
host |
✅ | JIRA host address (ex. 'https://dramancompany.atlassian.net') | - |
email |
✅ | JIRA email (ex. '[email protected]') | - |
apiToken |
✅ | JIRA api token | - |
issueKeys |
- | JIRA issue keys to update (ex. 'ABC-1,ABC-2') | - |
projectKey |
✅ | JIRA project key (ex. 'ABC') | - |
versionPrefix |
✅ | version prefix (ex. 'career-v') | - |
version |
✅ | release version (ex. '1.0.0') | - |
componentName |
- | JIRA component name to release (ex. 'career-web') | - |
issueDoneStatusName |
- | JIRA issue status name that represents Done (ex. 'Done') |
'Done` |
N/A
on:
pull_request:
types: [closed]
branches: [main]
jobs:
if: ${{ github.event.pull_request.merged }}
runs-on: ubuntu-latest
steps:
- name: Get new version
id: get-new-version
- name: Extract JIRA issue keys
id: jira-issue-keys
uses: dramancompany/[email protected]
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
- name: Update JIRA issues and release project version
uses: dramancompany/[email protected]
with:
host: ${{ secrets.JIRA_HOST }}
email: ${{ secrets.JIRA_EMAIL }}
apiToken: ${{ secrets.JIRA_API_TOKEN }}
issueKeys: ${{ steps.jira-issue-keys.outputs.issueKeys }}
projectKey: 'PCWEB'
versionPrefix: 'career-v'
version: ${{ steps.get-new-version.outputs.version }}
componentName: 'career-web'
$ pnpm build
$ git tag -am "v1.0.0" v1.0.0
$ git push --follow-tags