Skip to content

Commit

Permalink
Merge pull request #9 from srz-zumix/feature/release_drafter
Browse files Browse the repository at this point in the history
add release drafter
  • Loading branch information
srz-zumix committed May 6, 2022
2 parents 2a7e7b6 + 3879277 commit 00c1074
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: 'BREAKING CHANGES'
labels:
- 'BREAKING CHANGE'
- title: 'Features'
labels:
- 'feature'
- 'enhancement'
- title: 'Fixes'
labels:
- 'fix'
- 'bug'
- 'security'
- title: 'Documentation'
labels:
- 'document'
- 'documentation'
exclude-labels:
- 'dependencies'
- 'renovate'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver:
major:
labels:
- 'BREAKING CHANGE'
minor:
labels:
- 'feature'
- 'enhancement'
patch:
labels:
- 'fix'
- 'bug'
- 'security'
default: patch
template: |
[Compare $PREVIOUS_TAG with v$RESOLVED_VERSION](https://github.com/srz-zumix/setup-service-jenkins/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION)
## Changes
$CHANGES
27 changes: 27 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release drafter
on:
push:
branches:
- main
workflow_dispatch:

jobs:
draft_release:
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- uses: release-drafter/release-drafter@v5
id: release-drafter
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

publish_release:
runs-on: ubuntu-latest
if: github.event_name == 'workflow_dispatch'
steps:
- uses: release-drafter/release-drafter@v5
id: release-drafter
with:
publish: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 00c1074

Please sign in to comment.