feat(non-req): add match_score column to the epc assessment table (#164) #144
This file contains hidden or 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
| # SPDX-License-Identifier: Apache-2.0 | |
| # © Crown Copyright 2025. This work has been developed by the National Digital Twin Programme and is legally attributed to the Department for Business and Trade (UK) as the governing entity. | |
| name: API CD on PR merge | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| workflow_dispatch: | |
| inputs: | |
| major: | |
| description: "Major version (default: 1)" | |
| required: false | |
| default: "1" | |
| type: string | |
| minor: | |
| description: "Minor version (default: 0)" | |
| required: false | |
| default: "0" | |
| type: string | |
| permissions: | |
| id-token: write | |
| contents: read | |
| packages: read | |
| statuses: write | |
| jobs: | |
| versioning: | |
| name: Semantic Versioning | |
| runs-on: ubuntu-latest | |
| outputs: | |
| version: ${{ steps.generate-version.outputs.version }} | |
| steps: | |
| - name: Generate Patch Version (Timestamp) | |
| id: generate-patch | |
| run: | | |
| PATCH=$(date -u +"%Y%m%d%H%M%S") | |
| echo "patch_version=${PATCH}" >> $GITHUB_ENV | |
| - name: Generate Full Semantic Version | |
| id: generate-version | |
| run: | | |
| MAJOR="${{ github.event.inputs.major }}" && MAJOR=${MAJOR:-1} | |
| MINOR="${{ github.event.inputs.minor }}" && MINOR=${MINOR:-0} | |
| PATCH="${{ env.patch_version }}" | |
| VERSION="${MAJOR}.${MINOR}.${PATCH}" | |
| echo "VERSION=${VERSION}" >> $GITHUB_ENV | |
| echo "version=${VERSION}" >> $GITHUB_OUTPUT | |
| - name: Print Generated Version | |
| run: | | |
| echo "Generated Version: ${{ steps.generate-version.outputs.version }}" | |
| api-ci: | |
| needs: [versioning] | |
| uses: ./.github/workflows/api-ci-pr.yml | |
| secrets: inherit | |
| push-to-ECR: | |
| needs: [api-ci, versioning] | |
| uses: ./.github/workflows/api-cd-push-to-ECR.yml | |
| with: | |
| aws_account_number: "${{ vars.DEV_AWS_ACCOUNT_ID }}" | |
| repo_name: "iris/api" | |
| app_name: "iris/api" | |
| version: ${{ needs.versioning.outputs.version }} | |
| secrets: inherit |