Skip to content

Create Github release with JIRA issues and notify on Slack

Notifications You must be signed in to change notification settings

dramancompany/release-note

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create Github release and notify on Slack

  • This action creates Github release and notify on Slack when webhook url is provided

Inputs

Name Required Description Default
githubToken Github Token that has right to access repository -
host JIRA host address (ex. 'https://dramancompany.atlassian.net') -
email JIRA email (ex. 'abc@dramancompany.atlassian.net') -
apiToken JIRA api token -
issueKeys JIRA issue keys to update (ex. 'ABC-1,ABC-2') -
version release version (ex. '1.0.0') -
slackWebhookUrl Slack webhook url to send release note -

Outputs

N/A

Example Usage

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/extract-jira-issue-keys@v1.0.0
      with:
        githubToken: ${{ secrets.GITHUB_TOKEN }}

    - name: Update JIRA issues and release project version
      uses: dramancompany/jira-release@v1.0.0
      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'

    - name: Create Github release and notify on Slack
      uses: dramancompany/release-note
      with:
        githubToken: ${{ secrets.GITHUB_TOKEN }}
        host: ${{ secrets.JIRA_HOST }}
        email: ${{ secrets.JIRA_EMAIL }}
        apiToken: ${{ secrets.JIRA_API_TOKEN }}
        issueKeys: ${{ steps.jira-issue-keys.outputs.issueKeys }}
        version: ${{ steps.get-new-version.outputs.version }}
        slackWebhookUrl: ${{ secrets.RELEASE_NOTE_SLACK_WEBHOOK_URL }}

배포 순서

1. package.json의 버전 수정

2. 빌드

$ pnpm build

3. main 브랜치에 merge 혹은 push

4. 버전 태그 생성

$ git tag -am "v1.0.0" v1.0.0
$ git push --follow-tags

5. Github Release 생성

image image

About

Create Github release with JIRA issues and notify on Slack

Resources

Stars

Watchers

Forks

Packages

No packages published