Skip to content

nomis-combined-reporting #652

nomis-combined-reporting

nomis-combined-reporting #652

---
name: nomis-combined-reporting
on:
push:
branches:
- main
paths:
- 'terraform/environments/nomis-combined-reporting/**'
- '.github/workflows/nomis-combined-reporting.yml'
pull_request:
branches:
- main
paths:
- 'terraform/environments/nomis-combined-reporting/**'
- '.github/workflows/nomis-combined-reporting.yml'
workflow_dispatch:
inputs:
action:
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
jobs:
strategy:
uses: ./.github/workflows/reusable_terraform_strategy.yml

Check failure on line 35 in .github/workflows/nomis-combined-reporting.yml

View workflow run for this annotation

GitHub Actions / nomis-combined-reporting

Invalid workflow file

error parsing called workflow ".github/workflows/nomis-combined-reporting.yml" -> "./.github/workflows/reusable_terraform_strategy.yml" : workflow was not found. See https://docs.github.com/actions/learn-github-actions/reusing-workflows#access-to-reusable-workflows for more information.
if: inputs.action != 'destroy'
with:
application: "${{ github.workflow }}"
terraform:
needs: strategy
if: inputs.action != 'destroy'
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.strategy.outputs.matrix) }}
uses: ./.github/workflows/reusable_terraform_plan_apply.yml

Check failure on line 46 in .github/workflows/nomis-combined-reporting.yml

View workflow run for this annotation

GitHub Actions / nomis-combined-reporting

Invalid workflow file

error parsing called workflow ".github/workflows/nomis-combined-reporting.yml" -> "./.github/workflows/reusable_terraform_plan_apply.yml" : workflow was not found. See https://docs.github.com/actions/learn-github-actions/reusing-workflows#access-to-reusable-workflows for more information.
with:
application: "${{ github.workflow }}"
environment: "${{ matrix.target }}"
action: "${{ matrix.action }}"
secrets:
modernisation_platform_environments: "${{ secrets.MODERNISATION_PLATFORM_ENVIRONMENTS }}"
pipeline_github_token: "${{ secrets.MODERNISATION_PLATFORM_CI_USER_ENVIRONMENTS_REPO_PAT }}"
destroy-development:
if: inputs.action == 'destroy'
uses: ./.github/workflows/reusable_terraform_plan_apply.yml
with:
application: "${{ github.workflow }}"
environment: "development"
action: "plan_apply"
plan_apply_tfargs: "-destroy"
secrets:
modernisation_platform_environments: "${{ secrets.MODERNISATION_PLATFORM_ENVIRONMENTS }}"
pipeline_github_token: "${{ secrets.MODERNISATION_PLATFORM_CI_USER_ENVIRONMENTS_REPO_PAT }}"