Skip to content

Commit 70c2936

Browse files
committed
Update tofu actions
1 parent e67215d commit 70c2936

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.github/workflows/test.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,17 @@ jobs:
5555
TERRAFORM_ACTIONS_GITHUB_TOKEN: No
5656
run: |
5757
GNUPGHOME=$HOME/.gnupg PYTHONPATH=image/tools:image/src pytest tests
58+
59+
tofu:
60+
runs-on: ubuntu-latest
61+
name: OpenTofu
62+
env:
63+
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
64+
steps:
65+
- name: Checkout
66+
uses: actions/checkout@v3
67+
68+
- name: Check tofu actions are up to date
69+
run: |
70+
python3 tofu/tofuize.py
71+
git diff --exit-code

tofu-plan/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,11 @@ The [dflook/tofu-apply](https://github.com/dflook/terraform-github-actions/tree/
141141

142142
* `add_github_comment`
143143

144+
Controls whether a comment is added to the PR with the generated plan.
145+
144146
The default is `true`, which adds a comment to the PR with the results of the plan.
145147
Set to `changes-only` to add a comment only when the plan indicates there are changes to apply.
148+
Set to `always-new` to always create a new comment for each plan, instead of updating the previous comment.
146149
Set to `false` to disable the comment - the plan will still appear in the workflow log.
147150

148151
- Type: string
@@ -345,7 +348,7 @@ The [dflook/tofu-apply](https://github.com/dflook/terraform-github-actions/tree/
345348

346349
## Workflow events
347350

348-
When adding the plan to a PR comment (`add_github_comment` is set to `true`/`changes-only`), the workflow can be triggered by the following events:
351+
When adding the plan to a PR comment (`add_github_comment` is not `false`), the workflow can be triggered by the following events:
349352

350353
- pull_request
351354
- pull_request_review_comment

0 commit comments

Comments
 (0)