From 12f0f541fb6ae0117e8f8451f02e84df3d2da9d1 Mon Sep 17 00:00:00 2001 From: dvviktordelev <> Date: Mon, 13 Jan 2025 13:02:12 +0000 Subject: [PATCH] Prepare changes by: update_release_workflow.sh --- .github/workflows/release.yml | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1720aab..959a0a7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,31 @@ -name: release +name: Create a new release + +on: + workflow_dispatch: + inputs: + release_version: + type: string + description: 'The next version to release' + required: true + pull_request: + types: [closed] + branches: + - 'main' -on: workflow_dispatch - jobs: - release: + create_release_pr: + if: ${{ github.event_name == 'workflow_dispatch' }} uses: datavisyn/github-workflows/.github/workflows/release-source.yml@main - secrets: inherit + secrets: inherit + with: + release_version: ${{ inputs.release_version }} + + post_merge_release: + if: ${{ github.event_name == 'pull_request' && github.event.pull_request.merged == true && startsWith(github.event.pull_request.title, 'Release') }} + uses: datavisyn/github-workflows/.github/workflows/release-post-merge.yml@main + secrets: inherit + with: + pr_title: ${{ github.event.pull_request.title }} + pr_number: ${{ github.event.pull_request.number }} + repository_owner: ${{ github.repository_owner }} + repository_name: ${{ github.event.repository.name }} \ No newline at end of file