Skip to content

Commit

Permalink
docs: skip refresh with plan-parity (#429)
Browse files Browse the repository at this point in the history
Signed-off-by: Rishav Dhar <[email protected]>
  • Loading branch information
rdhar authored Mar 3, 2025
1 parent 9f89f99 commit bd7affe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/examples/pr_merge_matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ jobs:
with:
working-directory: path/to/${{ matrix.deployment }}
command: ${{ github.event_name == 'merge_group' && 'apply' || 'plan' }}
arg-refresh: ${{ github.event_name == 'merge_group' && 'false' }} # Skip refresh on apply.
arg-lock: ${{ github.event_name == 'merge_group' }}
arg-refresh: ${{ github.event_name == 'merge_group' }}
arg-var-file: env/${{ matrix.deployment }}.tfvars
arg-workspace: ${{ matrix.deployment }}
plan-encrypt: ${{ secrets.PASSPHRASE }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ For each workflow run, a matrix-friendly job summary with logs is added as a fal

1. Both `command: plan` and `command: apply` include: `init`, `fmt` (with `format: true`), `validate` (with `validate: true`), and `workspace` (with `arg-workspace`) commands rolled into it automatically.</br>
To separately run checks and/or generate outputs only, `command: init` can be used.</br></br>
1. Originally intended for `merge_group` event trigger, `plan-parity: true` inputs helps to prevent stale apply within a serial queue of workflow runs when merging multiple PRs.</br></br>
1. Originally intended for `merge_group` event trigger, `plan-parity: true` input helps prevent stale apply within a series of workflow runs when merging multiple PRs.</br></br>
1. The secret string input for `plan-encrypt` can be of any length, as long as it's consistent between encryption (plan) and decryption (apply).</br></br>
1. The `on-change` option is true when the exit code of the last TF command is non-zero.</br></br>
1. The default behavior of `comment-method` is to update the existing PR comment with the latest plan/apply output, making it easy to track changes over time through the comment's revision history.</br></br>
Expand Down

0 comments on commit bd7affe

Please sign in to comment.