################################################################################
#                     DO NOT EDIT THIS FILE (Auto-Generated)                   #
# Contents of this file were generated by the central configuration repository #
# Changes to this file may be overwritten.                                     #
################################################################################
name: ~Lib / Release
on:
  workflow_call:
    inputs:
      draft:
        required: false
        description: Defines if the release is a draft (not published directly). Defaults to true
        default: true
        type: boolean
      prerelease:
        required: false
        description: Defines if the release to create is a prerelease. Defaults to false
        default: false
        type: boolean
      targetBranch:
        required: false
        description: The target branch for the release being created
        default: main
        type: string
      taskPrefix:
        required: false
        description: The prefix that identifies task ids in the commits
        default: JIR-
        type: string
      templatePath:
        required: false
        description: The path within the .github/ folder for the release drafter configuration
        default: workflows/configs/managed/release-wizard.md
        type: string
jobs:
  release:
    runs-on: ubuntu-latest
    steps:
      - name: Create Github release
        uses: darioblanco/release-wizard@v2.0.1
        with:
          draft: ${{ inputs.draft }}
          prerelease: ${{ inputs.prerelease }}
          taskPrefix: ${{ inputs.taskPrefix }}
          token: ${{ secrets.REPO_ACCESS_TOKEN_OPEN_SOURCE }}
          templatePath: ${{ inputs.templatePath }}
