From 07ee1640905c3e20def71a12d9ac30a3c11eb90e Mon Sep 17 00:00:00 2001 From: ndkhanh-axonivy Date: Mon, 19 Aug 2024 14:59:59 +0700 Subject: [PATCH 1/2] Add release-drafter workflow --- .github/workflows/release-drafter.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/release-drafter.yml diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..6d1ccff --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,13 @@ +name: Release Drafter + +on: + push: + branches: + - master + pull_request: + types: [opened, reopened, synchronize] + workflow_dispatch: + +jobs: + build: + uses: axonivy-market/github-workflows/.github/workflows/release-drafter.yml@v4 From 00080b780e6ba8748d550374a2c8aa8a96cf04ab Mon Sep 17 00:00:00 2001 From: Khanh Nguyen Date: Thu, 22 Aug 2024 12:00:46 +0700 Subject: [PATCH 2/2] Update release-drafter workflow --- .github/workflows/release-drafter.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 6d1ccff..8ce3bb8 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -1,5 +1,4 @@ name: Release Drafter - on: push: branches: @@ -7,7 +6,21 @@ on: pull_request: 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: write + pull-requests: write jobs: build: uses: axonivy-market/github-workflows/.github/workflows/release-drafter.yml@v4 + with: + version: ${{ github.event.inputs.version }} + prerelease: ${{ github.event.inputs.prerelease }}