Skip to content

Question - Can be used if it is not part of a PR? #393

Answered by rdhar
csaavedravanta asked this question in Q&A
Discussion options

You must be logged in to vote

can TF-via-PR be used to run a terraform command without being part of a PR

Yes, TF-via-PR has been tested to work on non-pull_request event triggers, such as:

  • issue_comment
  • merge_group
  • push

will it run only the plan without doing nothing over any PR since it does not exists in this context

It'll run plan or apply, depending on your command: plan or command: apply input.

  • command: plan
    • Generates a plan file.
    • Stores it as a workflow artifact.
  • command: apply
    • Retrieves the relevant workflow artifact.
    • Uses the previously-generated plan file.

While TF-via-PR is smart enough to figure out which workflow artifact to retrieve for command: apply from pull_request or push events (as s…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@rdhar
Comment options

rdhar Jan 8, 2025
Maintainer

@eumpek
Comment options

@rdhar
Comment options

@rdhar
Comment options

Answer selected by rdhar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #392 on January 03, 2025 19:08.