25 lines
646 B
YAML
25 lines
646 B
YAML
name: Create Release on Merge to Main
|
|
|
|
on:
|
|
pull_request:
|
|
types: [closed]
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
inputs:
|
|
version:
|
|
description: 'Version to release'
|
|
required: false
|
|
type: string
|
|
|
|
jobs:
|
|
release:
|
|
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 |