Skip to content

Github Release Created #2

Github Release Created

Github Release Created #2

name: Github Release Created
on:
release:
types: ["published"] # Inherits all input defaults
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
deploy-main:
name: Deploy changes to main in nonprod AWS Account
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
strategy:
max-parallel: 1
matrix:
component: [api]
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Deploy Nonprod Environment
env:
APP_CLIENT_ID: ${{ secrets.APP_CLIENT_ID }}
APP_PEM_FILE: ${{ secrets.APP_PEM_FILE }}
run: |
bash .github/scripts/dispatch_internal_repo_workflow.sh \
--releaseVersion "${{ github.event.release.tag_name }}" \
--targetWorkflow "dispatch-deploy-static-notify-supplier-api-env.yaml" \
--targetEnvironment "main" \
--targetAccountGroup "nhs-notify-supplier-api-nonprod" \
--targetComponent "${{ matrix.component }}" \
--terraformAction "apply"