name: Terraform Apply on: workflow_dispatch: inputs: environment: required: true tfvars: required: false jobs: apply: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - run: terraform init - run: terraform plan -var-file="${{ github.event.inputs.tfvars }}" -out=tfplan - run: terraform apply -auto-approve tfplan