diff --git a/.github/examples/pr_merge_matrix.yaml b/.github/examples/pr_merge_matrix.yaml index 3ccc6756..bf75e313 100644 --- a/.github/examples/pr_merge_matrix.yaml +++ b/.github/examples/pr_merge_matrix.yaml @@ -34,6 +34,6 @@ jobs: with: arg_chdir: directory/path arg_command: ${{ github.event_name == 'merge_group' && 'apply' || 'plan' }} + arg_lock: ${{ github.event_name == 'merge_group' && 'true' || 'false' }} arg_var_file: env/${{ matrix.deployment }}.tfvars arg_workspace: ${{ matrix.deployment }} - arg_lock: ${{ github.event_name == 'merge_group' && 'true' || 'false' }} diff --git a/.github/examples/pr_push_auth.yaml b/.github/examples/pr_push_auth.yaml index 2fa83ab5..32477270 100644 --- a/.github/examples/pr_push_auth.yaml +++ b/.github/examples/pr_push_auth.yaml @@ -35,3 +35,4 @@ jobs: with: arg_chdir: directory/path arg_command: ${{ github.event_name == 'push' && 'apply' || 'plan' }} + arg_lock: ${{ github.event_name == 'push' && 'true' || 'false' }} diff --git a/.github/workflows/tf_tests.yaml b/.github/workflows/tf_tests.yaml index 2a13ed60..93f189c2 100644 --- a/.github/workflows/tf_tests.yaml +++ b/.github/workflows/tf_tests.yaml @@ -48,6 +48,7 @@ jobs: with: arg_chdir: tests/${{ matrix.path }} arg_command: ${{ github.event.pull_request.merged && 'apply' || 'plan' }} + arg_lock: ${{ github.event.pull_request.merged && 'true' || 'false' }} tf_tool: ${{ matrix.tool }} tf_version: ~> 1.8.0 diff --git a/README.md b/README.md index b8f72163..fa50dc49 100644 --- a/README.md +++ b/README.md @@ -75,13 +75,14 @@ jobs: steps: - uses: actions/checkout@v4 + - uses: opentofu/setup-opentofu@v1 - uses: devsectop/tf-via-pr@v11 with: - arg_command: ${{ github.event_name == 'push' && 'apply' || 'plan' }} arg_chdir: sample/directory/path - arg_workspace: development + arg_command: ${{ github.event_name == 'push' && 'apply' || 'plan' }} + arg_lock: ${{ github.event_name == 'push' && 'true' || 'false' }} arg_var_file: env/dev.tfvars - tf_version: ~> 1.8.0 + arg_workspace: development ``` > [!TIP]