Skip to content

Commit 2f37e6c

Browse files
author
Bastien Orivel
committed
Add TC_TASK_DIR in the runner environment
This is very dumb but javascript doesn't want to expand env variables in paths so we have to do it python side on the inputs. This allows us to use `TC_TASK_DIR` as an input to an action
1 parent c919ade commit 2f37e6c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

runner.py

+3
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@
8383
_ORIG_PRINT = print
8484
TC_TASK_DIR=os.getcwd()
8585

86+
# Put it in our environment so we can use it in task inputs
87+
os.environ["TC_TASK_DIR"] = TC_TASK_DIR
88+
8689

8790
def filtered_print(*args):
8891
"""

0 commit comments

Comments
 (0)