Skip to content

Commit

Permalink
Update tofu actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dflook committed Dec 8, 2023
1 parent e67215d commit 70c2936
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,17 @@ jobs:
TERRAFORM_ACTIONS_GITHUB_TOKEN: No
run: |
GNUPGHOME=$HOME/.gnupg PYTHONPATH=image/tools:image/src pytest tests
tofu:
runs-on: ubuntu-latest
name: OpenTofu
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Check tofu actions are up to date
run: |
python3 tofu/tofuize.py
git diff --exit-code
5 changes: 4 additions & 1 deletion tofu-plan/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,11 @@ The [dflook/tofu-apply](https://github.com/dflook/terraform-github-actions/tree/

* `add_github_comment`

Controls whether a comment is added to the PR with the generated plan.

The default is `true`, which adds a comment to the PR with the results of the plan.
Set to `changes-only` to add a comment only when the plan indicates there are changes to apply.
Set to `always-new` to always create a new comment for each plan, instead of updating the previous comment.
Set to `false` to disable the comment - the plan will still appear in the workflow log.

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

## Workflow events

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:
When adding the plan to a PR comment (`add_github_comment` is not `false`), the workflow can be triggered by the following events:

- pull_request
- pull_request_review_comment
Expand Down

0 comments on commit 70c2936

Please sign in to comment.