From beff22707892ddcd4448a90ca14698889ed1e4db Mon Sep 17 00:00:00 2001 From: Khanh Nguyen Date: Fri, 10 Jan 2025 09:47:42 +0700 Subject: [PATCH] MARP-1053 Update release drafter workflows for branch release/10.0 --- .github/workflows/publish-release-drafter.yml | 36 +++++++++++++++++++ .github/workflows/release-drafter.yml | 13 +++++++ .github/workflows/release.yml | 5 +-- 3 files changed, 50 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/publish-release-drafter.yml create mode 100644 .github/workflows/release-drafter.yml diff --git a/.github/workflows/publish-release-drafter.yml b/.github/workflows/publish-release-drafter.yml new file mode 100644 index 0000000..c604300 --- /dev/null +++ b/.github/workflows/publish-release-drafter.yml @@ -0,0 +1,36 @@ +name: Publish Release Drafter + +on: + workflow_run: + workflows: ["Release-Build"] + types: + - completed + +jobs: + publish_release_drafter: + if: ${{ github.event.workflow_run.conclusion == 'success' }} + uses: axonivy-market/github-workflows/.github/workflows/publish-release-drafter.yml@v5 + # The following input parameters are available: + # + # - tag: (optional) Specifies the release tag (e.g., 'v10.0.0'). + # If not provided, the most recent tag in the repository will be used by default. + # This ensures the workflow runs without requiring explicit tag input. + # + # - commitish: (optional) Indicates the branch name for the release. + # If not provided, it defaults to 'master'. For versioned releases, + # the workflow automatically checks for a corresponding branch + # (e.g., 'release/10.0' for version 10.0) and uses it if available. + # This allows the workflow to execute with default branch behavior. + # + # - publish: (optional) Controls whether the release is published automatically. + # Defaults to 'true'. Set to 'false' to create a draft release + # without immediate publication. + # + # Note: Both 'tag' and 'commitish' are configured to run with sensible defaults, + # so manual input is not required unless custom values are needed. + # + # Uncomment and modify the inputs as needed: + # with: + # tag: v10.0.0 + # commitish: release/10.0 + # publish: false \ No newline at end of file diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..c2d99a6 --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,13 @@ +name: Release Drafter + +on: + push: + branches: + - master + - release/* + pull_request: + types: [opened, reopened, synchronize] + +jobs: + release_drafter: + uses: axonivy-market/github-workflows/.github/workflows/release-drafter.yml@v5 \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ac0406d..bc801b4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,7 +4,4 @@ on: workflow_dispatch jobs: build: - uses: axonivy-market/github-workflows/.github/workflows/release.yml@v2 - # Disable Web Tests - # with: - # mvnArgs: -PnoWebTest + uses: axonivy-market/github-workflows/.github/workflows/release.yml@v5