Skip to content

Commit

Permalink
Remove types from pull_request in workflows
Browse files Browse the repository at this point in the history
richgreen-moj committed Jun 13, 2024
1 parent 0125d25 commit 30acf18
Showing 56 changed files with 12 additions and 69 deletions.
1 change: 0 additions & 1 deletion .github/workflows/analytical-platform-ingestion.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/analytical-platform-ingestion/**'
- '.github/workflows/analytical-platform-ingestion.yml'
1 change: 0 additions & 1 deletion .github/workflows/apex.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/apex/**'
- '.github/workflows/apex.yml'
1 change: 0 additions & 1 deletion .github/workflows/ccms-ebs-upgrade.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/ccms-ebs-upgrade/**'
- '.github/workflows/ccms-ebs-upgrade.yml'
1 change: 0 additions & 1 deletion .github/workflows/ccms-ebs.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/ccms-ebs/**'
- '.github/workflows/ccms-ebs.yml'
1 change: 0 additions & 1 deletion .github/workflows/cdpt-chaps.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/cdpt-chaps/**'
- '.github/workflows/cdpt-chaps.yml'
1 change: 0 additions & 1 deletion .github/workflows/cdpt-ifs.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/cdpt-ifs/**'
- '.github/workflows/cdpt-ifs.yml'
1 change: 0 additions & 1 deletion .github/workflows/cica-copilot.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/cica-copilot/**'
- '.github/workflows/cica-copilot.yml'
1 change: 0 additions & 1 deletion .github/workflows/cica-data-extraction.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/cica-data-extraction/**'
- '.github/workflows/cica-data-extraction.yml'
1 change: 0 additions & 1 deletion .github/workflows/cica-tariff.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/cica-tariff/**'
- '.github/workflows/cica-tariff.yml'
1 change: 0 additions & 1 deletion .github/workflows/contract-work-administration.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/contract-work-administration/**'
- '.github/workflows/contract-work-administration.yml'
1 change: 0 additions & 1 deletion .github/workflows/cooker.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/cooker/**'
- '.github/workflows/cooker.yml'
1 change: 0 additions & 1 deletion .github/workflows/corporate-staff-rostering.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/corporate-staff-rostering/**'
- '.github/workflows/corporate-staff-rostering.yml'
1 change: 0 additions & 1 deletion .github/workflows/dacp.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/dacp/**'
- '.github/workflows/dacp.yml'
1 change: 0 additions & 1 deletion .github/workflows/data-and-insights-wepi.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/data-and-insights-wepi/**'
- '.github/workflows/data-and-insights-wepi.yml'
1 change: 0 additions & 1 deletion .github/workflows/data-platform-apps-and-tools.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/data-platform-apps-and-tools/**'
- '.github/workflows/data-platform-apps-and-tools.yml'
19 changes: 9 additions & 10 deletions .github/workflows/data-platform.yml
Original file line number Diff line number Diff line change
@@ -5,31 +5,30 @@ on:
branches:
- main
paths:
- "terraform/environments/data-platform/**"
- ".github/workflows/data-platform.yml"
- 'terraform/environments/data-platform/**'
- '.github/workflows/data-platform.yml'

pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- "terraform/environments/data-platform/**"
- ".github/workflows/data-platform.yml"
- 'terraform/environments/data-platform/**'
- '.github/workflows/data-platform.yml'

workflow_dispatch:
inputs:
action:
description: "Set either [deploy|destroy]."
default: "deploy"
description: 'Set either [deploy|destroy].'
default: 'deploy'
required: true
type: string
options:
- deploy
- destroy

permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout

jobs:
strategy:
@@ -44,7 +43,7 @@ jobs:
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.strategy.outputs.matrix) }}
uses: ./.github/workflows/reusable_terraform_plan_apply_test.yml
uses: ./.github/workflows/reusable_terraform_plan_apply.yml
with:
application: "${{ github.workflow }}"
environment: "${{ matrix.target }}"
1 change: 0 additions & 1 deletion .github/workflows/delius-iaps.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/delius-iaps/**'
- '.github/workflows/delius-iaps.yml'
1 change: 0 additions & 1 deletion .github/workflows/delius-jitbit.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/delius-jitbit/**'
- '.github/workflows/delius-jitbit.yml'
1 change: 0 additions & 1 deletion .github/workflows/delius-mis.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/delius-mis/**'
- '.github/workflows/delius-mis.yml'
1 change: 0 additions & 1 deletion .github/workflows/delius-nextcloud.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/delius-nextcloud/**'
- '.github/workflows/delius-nextcloud.yml'
1 change: 0 additions & 1 deletion .github/workflows/digital-prison-reporting.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/digital-prison-reporting/**'
- '.github/workflows/digital-prison-reporting.yml'
1 change: 0 additions & 1 deletion .github/workflows/edw.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/edw/**'
- '.github/workflows/edw.yml'
1 change: 0 additions & 1 deletion .github/workflows/electronic-monitoring-data.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/electronic-monitoring-data/**'
- '.github/workflows/electronic-monitoring-data.yml'
1 change: 0 additions & 1 deletion .github/workflows/equip.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/equip/**'
- '.github/workflows/equip.yml'
1 change: 0 additions & 1 deletion .github/workflows/eric.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/eric/**'
- '.github/workflows/eric.yml'
1 change: 0 additions & 1 deletion .github/workflows/example.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/example/**'
- '.github/workflows/example.yml'
1 change: 0 additions & 1 deletion .github/workflows/genesys-call-centre-data.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/genesys-call-centre-data/**'
- '.github/workflows/genesys-call-centre-data.yml'
1 change: 0 additions & 1 deletion .github/workflows/hmpps-domain-services.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/hmpps-domain-services/**'
- '.github/workflows/hmpps-domain-services.yml'
1 change: 0 additions & 1 deletion .github/workflows/hmpps-oem.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/hmpps-oem/**'
- '.github/workflows/hmpps-oem.yml'
1 change: 0 additions & 1 deletion .github/workflows/laa-ccms-infra-azure-ad-sso.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/laa-ccms-infra-azure-ad-sso/**'
- '.github/workflows/laa-ccms-infra-azure-ad-sso.yml'
1 change: 0 additions & 1 deletion .github/workflows/laa-oem.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/laa-oem/**'
- '.github/workflows/laa-oem.yml'
1 change: 0 additions & 1 deletion .github/workflows/long-term-storage.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/long-term-storage/**'
- '.github/workflows/long-term-storage.yml'
1 change: 0 additions & 1 deletion .github/workflows/maat.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/maat/**'
- '.github/workflows/maat.yml'
1 change: 0 additions & 1 deletion .github/workflows/maatdb.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/maatdb/**'
- '.github/workflows/maatdb.yml'
8 changes: 3 additions & 5 deletions .github/workflows/mlra.yml
Original file line number Diff line number Diff line change
@@ -11,21 +11,20 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/mlra/**'
- '.github/workflows/mlra.yml'

workflow_dispatch:
inputs:
action:
description: 'Set either [deploy|destroy-dev].'
description: 'Set either [deploy|destroy].'
default: 'deploy'
required: true
type: string
options:
- deploy
- destroy-dev
- destroy

permissions:
id-token: write # This is required for requesting the JWT
@@ -54,7 +53,7 @@ jobs:
pipeline_github_token: "${{ secrets.MODERNISATION_PLATFORM_CI_USER_ENVIRONMENTS_REPO_PAT }}"

destroy-development:
if: inputs.action == 'destroy-dev'
if: inputs.action == 'destroy'
uses: ./.github/workflows/reusable_terraform_plan_apply.yml
with:
application: "${{ github.workflow }}"
@@ -64,4 +63,3 @@ jobs:
secrets:
modernisation_platform_environments: "${{ secrets.MODERNISATION_PLATFORM_ENVIRONMENTS }}"
pipeline_github_token: "${{ secrets.MODERNISATION_PLATFORM_CI_USER_ENVIRONMENTS_REPO_PAT }}"

1 change: 0 additions & 1 deletion .github/workflows/mojfin.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/mojfin/**'
- '.github/workflows/mojfin.yml'
1 change: 0 additions & 1 deletion .github/workflows/ncas.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/ncas/**'
- '.github/workflows/ncas.yml'
1 change: 0 additions & 1 deletion .github/workflows/nomis-combined-reporting.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/nomis-combined-reporting/**'
- '.github/workflows/nomis-combined-reporting.yml'
1 change: 0 additions & 1 deletion .github/workflows/nomis-data-hub.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/nomis-data-hub/**'
- '.github/workflows/nomis-data-hub.yml'
1 change: 0 additions & 1 deletion .github/workflows/nomis.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/nomis/**'
- '.github/workflows/nomis.yml'
1 change: 0 additions & 1 deletion .github/workflows/oas.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/oas/**'
- '.github/workflows/oas.yml'
1 change: 0 additions & 1 deletion .github/workflows/oasys-national-reporting.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/oasys-national-reporting/**'
- '.github/workflows/oasys-national-reporting.yml'
1 change: 0 additions & 1 deletion .github/workflows/oasys.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/oasys/**'
- '.github/workflows/oasys.yml'
1 change: 0 additions & 1 deletion .github/workflows/observability-platform.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/observability-platform/**'
- '.github/workflows/observability-platform.yml'
1 change: 0 additions & 1 deletion .github/workflows/operations-engineering.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/operations-engineering/**'
- '.github/workflows/operations-engineering.yml'
1 change: 0 additions & 1 deletion .github/workflows/performance-hub.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/performance-hub/**'
- '.github/workflows/performance-hub.yml'
1 change: 0 additions & 1 deletion .github/workflows/planetfm.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/planetfm/**'
- '.github/workflows/planetfm.yml'
1 change: 0 additions & 1 deletion .github/workflows/portal.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/portal/**'
- '.github/workflows/portal.yml'
1 change: 0 additions & 1 deletion .github/workflows/ppud.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/ppud/**'
- '.github/workflows/ppud.yml'
1 change: 0 additions & 1 deletion .github/workflows/pra-register.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/pra-register/**'
- '.github/workflows/pra-register.yml'
1 change: 0 additions & 1 deletion .github/workflows/refer-monitor.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/refer-monitor/**'
- '.github/workflows/refer-monitor.yml'
1 change: 0 additions & 1 deletion .github/workflows/sprinkler.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/sprinkler/**'
- '.github/workflows/sprinkler.yml'
1 change: 0 additions & 1 deletion .github/workflows/tipstaff.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/tipstaff/**'
- '.github/workflows/tipstaff.yml'
1 change: 0 additions & 1 deletion .github/workflows/tribunals.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/tribunals/**'
- '.github/workflows/tribunals.yml'
1 change: 0 additions & 1 deletion .github/workflows/wardship.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/wardship/**'
- '.github/workflows/wardship.yml'
1 change: 0 additions & 1 deletion .github/workflows/xhibit-portal.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ on:
pull_request:
branches:
- main
types: [opened, edited, reopened, synchronize]
paths:
- 'terraform/environments/xhibit-portal/**'
- '.github/workflows/xhibit-portal.yml'

0 comments on commit 30acf18

Please sign in to comment.