From c9f08640198fa986ee81d1235edd8a3beb008e8f Mon Sep 17 00:00:00 2001 From: ndkhanh-axonivy Date: Mon, 12 Aug 2024 02:55:13 +0700 Subject: [PATCH] Update release drafter work flow --- .github/release-drafter.yml | 11 +++-------- .github/workflows/release-drafter.yml | 19 ++++++++++++------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index db31cd5aa..6855433b7 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -38,14 +38,9 @@ template: | ## Changes $CHANGES autolabeler: - - label: 'chore' - branch: - - '/chore\/.+/' - label: 'bug' branch: - - '/bug\/.+/' - - '/bugfix\/.+/' - - '/hotfix\/.+/' - - label: 'feature' + - '/(bugfix|fix)\/.+/' + - label: 'enhancement' branch: - - '/feature\/.+/' \ No newline at end of file + - '/(feature)\/.+/' \ No newline at end of file diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 73d7ee6a7..607e73c68 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -2,16 +2,20 @@ name: Release Drafter 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] - # pull_request_target event is required for autolabeler to support PRs from forks - # pull_request_target: - # types: [opened, reopened, synchronize] + workflow_dispatch: + inputs: + version: + description: 'Release version' + required: true + prerelease: + description: 'Is this a prerelease?' + required: false + default: 'false' + type: boolean permissions: contents: read @@ -36,6 +40,7 @@ jobs: # (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml with: config-name: release-drafter.yml - disable-autolabeler: true + version: ${{ github.event.inputs.version }} + prerelease: ${{ github.event.inputs.prerelease }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file