Skip to content

Commit

Permalink
Merge pull request #2 from quino0627/setting-up-comittizen
Browse files Browse the repository at this point in the history
commit cli 세팅
  • Loading branch information
quino0627 authored Sep 22, 2021
2 parents 355463a + 276ed9e commit 3cb6b7b
Show file tree
Hide file tree
Showing 4 changed files with 1,346 additions and 23 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/dumpversion.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Bump version

on:
push:
branches:
- master

jobs:
bump-version:
if: "!startsWith(github.event.head_commit.message, 'bump:')"
runs-on: ubuntu-latest
name: "Bump version and create changelog with commitizen"
steps:
- name: Check out
uses: actions/checkout@v2
with:
token: "${{ secrets.ACTION_ACCESS_TOKEN }}"
fetch-depth: 0
- name: Create bump and changelog
uses: commitizen-tools/commitizen-action@master
with:
branch: master
github_token: ${{ secrets.ACTION_ACCESS_TOKEN }}
changelog_increment_filename: body.md
- name: Release
uses: softprops/action-gh-release@v1
with:
body_path: "body.md"
tag_name: v${{ env.REVISION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
repos:
- repo: https://github.com/commitizen-tools/commitizen
rev: master
hooks:
- id: commitizen
stages: [commit-msg]
Loading

0 comments on commit 3cb6b7b

Please sign in to comment.