hot-fix for release 0.4.7 (#649) #530
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: Deploy onboarding functions | |
on: | |
push: | |
branches: | |
- main | |
- releases/* | |
paths: | |
- 'apps/onboarding-functions/**' | |
- "apps/pom.xml" | |
- "pom.xml" | |
workflow_dispatch: | |
inputs: | |
env: | |
type: choice | |
description: Environment | |
options: | |
- dev | |
- uat | |
- prod | |
jobs: | |
release_dev: | |
uses: ./.github/workflows/call_release_function.yml | |
name: '[Dev] OnBoarding function Release' | |
if: ${{ (startsWith(github.ref_name, 'releases/') != true && inputs.env == null) || inputs.env == 'dev' }} | |
secrets: inherit | |
with: | |
environment: dev | |
short_env: d | |
upload_openapi_enabled: true | |
release_uat: | |
uses: ./.github/workflows/call_release_function.yml | |
name: '[UAT] OnBoarding function Release' | |
if: ${{ (startsWith(github.ref_name, 'releases/') == true && inputs.env == null) || inputs.env == 'uat' }} | |
secrets: inherit | |
with: | |
environment: uat | |
short_env: u | |
upload_openapi_enabled: true | |
release_prod: | |
uses: ./.github/workflows/call_release_function.yml | |
name: '[Prod] OnBoarding function Release' | |
if: ${{ inputs.env == 'prod' }} | |
secrets: inherit | |
with: | |
environment: prod | |
short_env: p | |
upload_openapi_enabled: true |