Skip to content

Merge branch 'main' into feature/add-cognito-for-etna #4

Merge branch 'main' into feature/add-cognito-for-etna

Merge branch 'main' into feature/add-cognito-for-etna #4

Workflow file for this run

name: Deploy feature environment
on:
workflow_dispatch:
inputs:
config:
type: choice
description: Configuration
required: true
default: develop.json
options:
- develop.json
- staging.json
- production.json
push:
branches:
- "feature/**"
concurrency:
group: deploy-feature-${{ github.ref }}
jobs:
env-name:
runs-on: ubuntu-latest
if: github.ref_name != 'main'
steps:
- uses: actions/checkout@v4
- name: Get environment name
id: get-environment
run: echo "ENVIRONMENT=$(echo "${{ github.ref_name }}" | sed -e 's,/,-,g')" >> "$GITHUB_OUTPUT"
outputs:
environment: ${{ steps.get-environment.outputs.ENVIRONMENT }}
deploy:
runs-on: ubuntu-latest
if: github.ref_name != 'main'
environment:
name: ${{ needs.env-name.outputs.environment }}
needs:
- env-name
steps:
- uses: actions/checkout@v4
- name: Deploy
uses: ./.github/actions/deploy
with:
config: ${{ inputs.config }}
environment: ${{ needs.env-name.outputs.environment }}