Skip to content

What does path in the workflow refer to #100

Answered by dflook
msuzoagu asked this question in Q&A
Discussion options

You must be logged in to vote

While a GitHub Actions job is running it gets its own directory on disk to use, called it's workspace.
path is the relative path to the directory containing your terraform files, from the workspace.

You would almost always use the checkout action to clone your repo into the workspace as the first step of your job, so you can think of path as the path to your terraform directory inside your repo. The default being the root of your repo.

Confusingly, Terraform has its own idea of a workspace, which you set with the workspace input.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by msuzoagu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants