diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index b99844be..0c1cbc1c 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -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 diff --git a/.github/workflows/draft-release.yml b/.github/workflows/draft-release.yml index 44a77a3d..528c8962 100644 --- a/.github/workflows/draft-release.yml +++ b/.github/workflows/draft-release.yml @@ -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 }}