Replies: 1 comment
-
$DIR and $PWD should both point to the checked out repo, eg:
FYI, you'll also have:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need to get the full path of the cloned repo in a custom workflow step.
There is a specific file in the repo containing input data, the execution of myscript needs to read this file and perform initialization before plan and apply - the specific file in the repo contains reference to an Azure KeyVault, myscript reads the KeyVault and fill some additional environment variables defined in the KeyVault, mostly secrets .
Is there any predefined system environment variable effective during the execution of myscript that myscript can read in order to figure out the location of the cloned repo and the full path of the specified file in it?
What I found in the doc:
DIR - Absolute path to the current directory.
Is this the environment variable I am looking for?
Beta Was this translation helpful? Give feedback.
All reactions