You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Below, if it returns 2, meaning a change, I want to capture that to apply later, for example.
- name: TG plan
id: plan
if: matrix.folder != 'app_accounts'
run: |
cd ${{ github.workspace }}/infra/${{ matrix.folder }}
terragrunt plan --terragrunt-non-interactive \
-detailed-exitcode \
-compact-warnings \
|| PLAN_STATUS=$? # we want to continue even if the plan fails to detect changes
[[ -z "$PLAN_STATUS" ]] && PLAN_STATUS=0
echo "exit code for tofu plan is actually: $PLAN_STATUS"
echo "plan_status=$PLAN_STATUS" >> $GITHUB_OUTPUT
[[ $PLAN_STATUS -eq 2 ]] && exit 0 || exit $PLAN_STATUS
The exit code will always be 0 if run with tofu.
However, In that same GHA and all else being equals, if I just comment out the setup-opentofu stanza, terragrunt is forced to use terraform instead. And then, it works as expected.
The text was updated successfully, but these errors were encountered:
Hello and thank you for this issue! The core team regularly reviews new issues and discusses them, but this can take a little time. Please bear with us while we get to your issue. If you're interested, the contribution guide has a section about the decision-making process.
Hi,
I have this GHA causing me grief... for brevity, the pieces that I believe matter.
The problem does not happen when I run locally with the same version of
tofu
andterragrunt
(of course).I install the tofu action with the latest version.
yields success with
Below, if it returns 2, meaning a change, I want to capture that to
apply
later, for example.The exit code will always be 0 if run with
tofu
.However, In that same GHA and all else being equals, if I just comment out the
setup-opentofu
stanza, terragrunt is forced to useterraform
instead. And then, it works as expected.The text was updated successfully, but these errors were encountered: