Skip to content

Bump eslint-plugin-jest from 28.14.0 to 29.0.1 #109

Bump eslint-plugin-jest from 28.14.0 to 29.0.1

Bump eslint-plugin-jest from 28.14.0 to 29.0.1 #109

Workflow file for this run

name: PR Closed
on:
workflow_dispatch:
pull_request:
types: [closed]
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
check-merge-or-workflow-dispatch:
runs-on: ubuntu-latest
outputs:
deploy: ${{ steps.check.outputs.deploy }}
steps:
- name: Check if PR was merged or workflow is triggered by workflow_dispatch
id: check
run: |
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
echo "deploy=true" >> $GITHUB_OUTPUT
echo "Job triggered by workflow_dispatch - running 'deploy-main'"
elif [[ "${{ github.event_name }}" == "pull_request" && "${{ github.event.pull_request.merged }}" == "true" ]]; then
echo "deploy=true" >> $GITHUB_OUTPUT
echo "Job triggered by Merged PR - running 'deploy-main'"
else
echo "deploy=false" >> $GITHUB_OUTPUT
echo "Job not triggered by workflow_dispatch or Merged PR - Skipping 'deploy-main'"
fi
deploy-main:
needs: check-merge-or-workflow-dispatch
name: Deploy changes to main in dev AWS account
if: needs.check-merge-or-workflow-dispatch.outputs.deploy == 'true'
permissions:
id-token: write
contents: read
strategy:
max-parallel: 1
matrix:
component: [api]
uses: ./.github/workflows/reusable_internal_repo_build.yaml
secrets: inherit
with:
releaseVersion: main
targetWorkflow: "dispatch-deploy-static-notify-supplier-api-env.yaml"
targetEnvironment: "main"
targetAccountGroup: "nhs-notify-supplier-api-dev"
targetComponent: ${{ matrix.component }}
terraformAction: "apply"