Skip to content

Paths and environment variables in artifact paths #25576

Answered by Yanjingzhu
pmatos asked this question in Actions
Discussion options

You must be logged in to vote

There is a default environment variable named GITHUB_WORKSPACE.

The GitHub workspace directory path. The workspace directory contains a subdirectory with a copy of your repository if your workflow uses the actions/checkout action. If you don’t use the actions/checkout action, the directory will be empty. For example, /home/runner/work/my-repo-name/my-repo-name.

If you don’t set working-directory keyword in your step, the default working directory is /home/runner/work/my-repo-name/my-repo-name.

Let me show you an example, there is my file structure in the repo:

 After checkout action, these folders and files in the root of my repo will exist under /home/runne…

Replies: 1 comment

Comment options

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