Release Workflow triggered by user j616 on bbc/rd-apmm-python-lib-mediagrains main #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Workflow | |
run-name: ${{ format('{0} triggered by {1} on {2} {3}', github.workflow, (github.event_name == 'workflow_dispatch' && format('user {0}', github.actor) || format('{0} event', github.event_name) ), github.repository, github.ref_name) }} | |
on: | |
workflow_dispatch: | |
# Defaults here are only for the dispatch run dialogue box. See the shared workflow calls below for defaults for runs triggered by other means | |
inputs: | |
commontoolingBranch: | |
description: 'Commontooling branch or tag to use' | |
required: true | |
default: 'main' | |
type: string | |
pythonVersion: | |
description: 'Python version to use' | |
required: true | |
default: '3.10' | |
type: string | |
jobs: | |
SharedReleaseWorkflow: | |
name: Release | |
permissions: | |
contents: write | |
uses: ./.github/workflows/shared-ext-release-workflow.yml | |
with: | |
commontoolingBranch: ${{ inputs.commontoolingBranch || 'main' }} | |
secrets: inherit | |
SharedCIWorkflow: | |
name: CI | |
permissions: | |
actions: read | |
contents: read | |
pages: write | |
id-token: write | |
needs: SharedReleaseWorkflow | |
uses: ./.github/workflows/shared-ext-ci-workflow.yml | |
with: | |
commontoolingBranch: ${{ inputs.commontoolingBranch || 'main' }} | |
pythonVersion: ${{ inputs.pythonVersion || '3.10' }} | |
enableUploadDocker: true | |
checkoutRef: ${{ needs.SharedReleaseWorkflow.outputs.releaseRef }} | |
secrets: inherit |