From 96fac9c56ea6f3006a43f69319edff82fdbd7f20 Mon Sep 17 00:00:00 2001 From: Akilan Selvacoumar <31743758+Akilan1999@users.noreply.github.com> Date: Thu, 4 Nov 2021 00:12:58 +0400 Subject: [PATCH 1/7] Update and rename main.yml to release.yml --- .github/workflows/{main.yml => release.yml} | 34 +-------------------- 1 file changed, 1 insertion(+), 33 deletions(-) rename .github/workflows/{main.yml => release.yml} (60%) diff --git a/.github/workflows/main.yml b/.github/workflows/release.yml similarity index 60% rename from .github/workflows/main.yml rename to .github/workflows/release.yml index 61615c7..568a028 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,3 @@ - name: Release Drafter on: @@ -28,35 +27,4 @@ jobs: # disable-autolabeler: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - -name-template: 'v$RESOLVED_VERSION' -tag-template: 'v$RESOLVED_VERSION' -categories: - - title: '🚀 Features' - labels: - - 'feature' - - 'enhancement' - - title: '🐛 Bug Fixes' - labels: - - 'fix' - - 'bugfix' - - 'bug' - - title: '🧰 Maintenance' - label: 'chore' - -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: - - 'major' - minor: - labels: - - 'minor' - patch: - labels: - - 'patch' - default: patch -template: | - ## Changes - $CHANGES + From 5489a7c502baf7f2205179889360f545ae65d43a Mon Sep 17 00:00:00 2001 From: Akilan Selvacoumar <31743758+Akilan1999@users.noreply.github.com> Date: Thu, 4 Nov 2021 00:26:34 +0400 Subject: [PATCH 2/7] Update release.yml --- .github/workflows/release.yml | 38 +++++++++++------------------------ 1 file changed, 12 insertions(+), 26 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 568a028..8cef05f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,30 +1,16 @@ -name: Release Drafter - +name: Core Release on: - push: - # branches to consider in the event; optional, defaults to all - branches: - - master - # pull_request event is required only for autolabeler - pull_request: - # Only following types are handled by the action, but one can default to all as well - types: [opened, reopened, synchronize] - + create: jobs: - update_release_draft: + release: + name: Release runs-on: ubuntu-latest steps: - # (Optional) GitHub Enterprise requires GHE_HOST variable set - #- name: Set GHE_HOST - # run: | - # echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV - - # Drafts your next Release notes as Pull Requests are merged into "master" - - uses: release-drafter/release-drafter@v5 - # (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml - # with: - # config-name: my-config.yml - # disable-autolabeler: true - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - + - 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 }} From 627d608232bf89ccfd94f623268c0794a55a22dd Mon Sep 17 00:00:00 2001 From: Akilan Selvacoumar <31743758+Akilan1999@users.noreply.github.com> Date: Thu, 4 Nov 2021 00:28:45 +0400 Subject: [PATCH 3/7] Update release.yml --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8cef05f..99e02ee 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Core Release +name: Core Release on: create: jobs: From ca10ee827777bdb0a0f898b8a2f020dfca21e194 Mon Sep 17 00:00:00 2001 From: Akilan Selvacoumar <31743758+Akilan1999@users.noreply.github.com> Date: Thu, 4 Nov 2021 00:29:16 +0400 Subject: [PATCH 4/7] Rename release.yml to main.yml --- .github/workflows/{release.yml => main.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{release.yml => main.yml} (100%) diff --git a/.github/workflows/release.yml b/.github/workflows/main.yml similarity index 100% rename from .github/workflows/release.yml rename to .github/workflows/main.yml 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 5/7] 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 6/7] 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 7/7] 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 }}