Skip to content

Commit

Permalink
Prepare changes by: update_release_workflow.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
dvviktordelev committed Jan 13, 2025
1 parent 274d89a commit 309cf06
Showing 1 changed file with 28 additions and 5 deletions.
33 changes: 28 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 309cf06

Please sign in to comment.