Enhance release workflow to support manual triggers and version input. The release job now activates on both merged pull requests and manual dispatch, allowing for version specification during releases.

This commit is contained in:
vitor-aignosi
2026-01-15 16:53:22 -03:00
parent 9feff0fe8b
commit 0032f88397

View File

@@ -5,12 +5,21 @@ on:
types: [closed]
branches:
- main
workflow_dispatch:
inputs:
version:
description: 'Version to release'
required: false
type: string
jobs:
release:
if: github.event.pull_request.merged == true
if: |
(github.event_name == 'pull_request' && github.event.pull_request.merged == true) ||
github.event_name == 'workflow_dispatch'
uses: Aignosi/github_workflow_templates/.github/workflows/dataops-module-release.yml@main
permissions: write-all
with:
project_name: 'laborious'
version: ${{ github.event.inputs.version || '' }}
secrets: inherit