From c15f9d4adf716dc30251724a4f200aa2689a6910 Mon Sep 17 00:00:00 2001 From: Akilan Selvacoumar <31743758+Akilan1999@users.noreply.github.com> Date: Thu, 4 Nov 2021 00:32:56 +0400 Subject: [PATCH 1/3] Create release-drafter.yml --- .github/release-drafter.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/release-drafter.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..f613ef9 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,36 @@ +name-template: 'v$RESOLVED_VERSION' +tag-template: 'v$RESOLVED_VERSION' +template: | + # What's Changed + $CHANGES +categories: + - title: 'Breaking' + label: 'type: breaking' + - title: 'New' + label: 'type: feature' + - title: 'Bug Fixes' + label: 'type: bug' + - title: 'Maintenance' + label: 'type: maintenance' + - title: 'Documentation' + label: 'type: docs' + - title: 'Dependency Updates' + label: 'type: dependencies' + +version-resolver: + major: + labels: + - 'type: breaking' + minor: + labels: + - 'type: feature' + patch: + labels: + - 'type: bug' + - 'type: maintenance' + - 'type: docs' + - 'type: dependencies' + - 'type: security' + +exclude-labels: + - 'skip-changelog' From 006a8a0479821ad87c15fbba698d051f386a4fa8 Mon Sep 17 00:00:00 2001 From: Akilan Selvacoumar <31743758+Akilan1999@users.noreply.github.com> Date: Thu, 4 Nov 2021 00:34:08 +0400 Subject: [PATCH 2/3] Create draft.yml --- .github/workflows/draft.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/draft.yml diff --git a/.github/workflows/draft.yml b/.github/workflows/draft.yml new file mode 100644 index 0000000..0b87f57 --- /dev/null +++ b/.github/workflows/draft.yml @@ -0,0 +1,15 @@ + +name: Release Drafter + +on: + push: + branches: + - master + +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From ed6d6becc892c669b77293355cd5959d82a5df38 Mon Sep 17 00:00:00 2001 From: Akilan Selvacoumar <31743758+Akilan1999@users.noreply.github.com> Date: Thu, 4 Nov 2021 00:35:05 +0400 Subject: [PATCH 3/3] Delete main.yml --- .github/workflows/main.yml | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 99e02ee..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Core Release -on: - create: -jobs: - release: - name: Release - runs-on: ubuntu-latest - steps: - - name: Create a release draft for a version tag - id: create-release-draft - uses: ecampidoglio/auto-release-draft@v1 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - - name: Print the URL of the release draft - if: steps.create-release-draft.outputs.release-url != '' - run: echo ${{ steps.create-release-draft.outputs.release-url }}