Skip to content

Build Infra

Build Infra #50

Workflow file for this run

name: Build Infra
on:
# When a PR is created targeting master branch
pull_request:
branches:
- master
paths:
- "infrastructure/**"
# Manual trigger via GH Actions UI
workflow_dispatch:
inputs:
environment:
description: "Select target environment"
required: true
default: "dev"
type: choice
options:
- dev
- test
- prod
run_initial:
description: "Run initial Terraform setup?"
required: false
default: "No"
type: choice
options:
- "No"
- "Yes"
jobs:
initial:
if: ${{ inputs.run_initial == 'Yes' }}
runs-on: ubuntu-latest
outputs:
job_status: ${{ job.status }}
secrets: inherit

Check failure on line 38 in .github/workflows/build-infra.yml

View workflow run for this annotation

GitHub Actions / Build Infra

Invalid workflow file

The workflow is not valid. .github/workflows/build-infra.yml (Line: 38, Col: 5): Unexpected value 'secrets'
steps:
- name: Build Initial Infra
uses: ./.github/workflows/aws-template-terraform.yml
with:
CONTEXT_FOLDER: "./infrastructure/cloud/environments/initial"
CHANGE_FOLDER_NAME: environments/${{ inputs.environment }}
ENVIRONMENT_NAME: ${{ inputs.environment || 'dev' }}
APPLY_TF_CODE: false
build:
needs: [initial]
if: ${{ inputs.run_initial == 'No' || needs.initial.outputs.job_status == 'success' }}
uses: ./.github/workflows/aws-template-terraform.yml
with:
CONTEXT_FOLDER: "./infrastructure/cloud/environments/${{ inputs.environment || 'dev' }}"
CHANGE_FOLDER_NAME: environments/${{ inputs.environment || 'dev' }}
ENVIRONMENT_NAME: ${{ inputs.environment || 'dev' }}
APPLY_TF_CODE: false
secrets: inherit