diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 2026b019..8d97f283 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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 diff --git a/tofu-plan/README.md b/tofu-plan/README.md index 7b7f0fee..57b8e0fb 100644 --- a/tofu-plan/README.md +++ b/tofu-plan/README.md @@ -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 @@ -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