terraform-github-actions icon indicating copy to clipboard operation
terraform-github-actions copied to clipboard

terraform-apply status check

Open JafoFett opened this issue 3 years ago • 3 comments

Suggestion

Would it be possible to have the terraform apply on comment create a status? Would like my repo to be un-mergeable until the terraform-apply completes with success, then after that the repo could accept a merge to main after the status check completes.

JafoFett avatar Mar 10 '22 22:03 JafoFett

Hi @JafoFett, you should be able to select whatever the apply job is as a required status check. This would require that the apply job was triggered and ran successfully at least once before the PR can be merged.

dflook avatar Mar 10 '22 22:03 dflook

That's what I thought too, but if I put the terraform-apply job as a required check in the branch protection the pr does not actually put that as a status, so it sits there waiting for it. Unless i'm missing something...

JafoFett avatar Mar 10 '22 22:03 JafoFett

It seems using issue_comment for manual triggers might be the issue here, doesn't seem to create a status check.

JafoFett avatar Mar 11 '22 14:03 JafoFett