navapbc / template-infra

A template to set up foundational infrastructure for your application in AWS
Apache License 2.0
11 stars 2 forks source link

🐞 Check infra deploy status shows up as failure if there's nothing to check #700

Closed lorenyu closed 4 months ago

lorenyu commented 4 months ago

The check infra deploy status job shows up as a failure if there's nothing to check i.e. if no root modules have been configured (https://github.com/navapbc/template-infra/actions/runs/10072028506). It's kind of an edge case but would be nice to not have a failing job on a new project that just hasn't set up any infra resources yet.

Idea: Add an if condition into the job to avoid running it if there is nothing to check