From 5606c3c31179c9b100629f0c09bf315920182b06 Mon Sep 17 00:00:00 2001 From: Adrian Marin Date: Mon, 14 Mar 2022 15:36:54 +0200 Subject: [PATCH] chore: release drafter 1.x (#730) --- .github/{release-drafter.yml => release-drafter-1x.yml} | 4 ++-- .github/workflows/release-notes.yml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) rename .github/{release-drafter.yml => release-drafter-1x.yml} (93%) diff --git a/.github/release-drafter.yml b/.github/release-drafter-1x.yml similarity index 93% rename from .github/release-drafter.yml rename to .github/release-drafter-1x.yml index 70a3c257e..188eb303e 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter-1x.yml @@ -1,4 +1,4 @@ -name-template: 'Next release draft' +name-template: 'Next release draft $MAJOR.x' tag-template: 'v$NEXT_PATCH_VERSION' categories: - title: '🎸 Features' @@ -38,7 +38,7 @@ version-resolver: - 'patch' default: patch references: - - main + - 1.x template: | ## Release notes diff --git a/.github/workflows/release-notes.yml b/.github/workflows/release-notes.yml index e140f48c2..742d8d974 100644 --- a/.github/workflows/release-notes.yml +++ b/.github/workflows/release-notes.yml @@ -1,9 +1,8 @@ name: Build release notes on: - push: + pull_request: branches: - - main - 1.x jobs: @@ -12,9 +11,10 @@ jobs: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v2 - uses: release-drafter/release-drafter@v5 id: release_drafter with: - config-name: release-drafter.yml + config-name: release-drafter-1x.yml env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}