Skip to content

Commit

Permalink
Adjust release drafter config
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Krug <[email protected]>
  • Loading branch information
michikrug committed Nov 15, 2021
1 parent c44fd4e commit a0f05fb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
12 changes: 2 additions & 10 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,9 @@ categories:
labels:
- 'maintenance'
- 'dependencies'
version-resolver:
major:
- title: '📖 Documentation'
labels:
- 'major'
minor:
labels:
- 'minor'
patch:
labels:
- 'patch'
default: patch
- 'documentation'
template: |
## Changes
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,15 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Get version tag
id: get_version_tag
run: |
[[ ! "$GITHUB_REF" =~ refs/tags ]] && exit
echo "::set-output name=tag::${GITHUB_REF#refs/tags/}"
- name: Draft Release
uses: release-drafter/release-drafter@v5
with:
name: ${GITHUB_REF#refs/tags/}
tag: ${GITHUB_REF#refs/tags/}
name: ${{steps.get_version_tag.outputs.tag}}
tag: ${{steps.get_version_tag.outputs.tag}}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a0f05fb

Please sign in to comment.