Closed UncleSamSwiss closed 1 year ago
I can think of a very "hacky" solution.
spec:
taskOptions:
- for: ["apply", "apply-delete"]
script:
inline: |-
#!/bin/bash
echo do nothing
I have alternative ideas, but the one above is the easiest to do.
Oh, I didn't think about that, but of course this will work. Thanks a lot!
We would like to be able to only do
init
andplan
, but not the other tasks.Reason for this is, we are using GitHub Actions to test the effect of changes to terraform projects in a PR. So, in the PR we currently log the output of
terraform plan
. Now we are considering to move from running Terraform directly in GitHub Actions to running it interraform-operator
and we would like to keep this feedback on the PR.We can create a custom script for the
plan
task that uploads the output ofterraform plan
to the GitHub PR, but can we prevent runningapply
completely?