Anyone got an idea how to write to a to an environ...
# cfml-general
z
Anyone got an idea how to write to a to an environment variable from cfml? I want to output the errors from a Lucee build on github actions, i.e.
$GITHUB_STEP_SUMMARY
https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#example-4
doh, it's actually a path to a file
a
I was kinda wondering if you were reading it right.
(sorry, only just out of bed & shower and was sitting down to look @ it some, but had concluded "that can't be what they need one to do here; env vars don't work like that")
You gonna write this exercise up once yer done?
FWIW, I read this the same way you did @ first:
Copy code
echo "### Hello world! :rocket:" >> $GITHUB_STEP_SUMMARY
But a test bears out what you say:
Copy code
adam@DESKTOP-QV1A45U:~$ export TEMP_FILE=/mnt/c/temp/env.txt
adam@DESKTOP-QV1A45U:~$ echo $TEMP_FILE
/mnt/c/temp/env.txt
adam@DESKTOP-QV1A45U:~$ echo "hi" >> $TEMP_FILE
adam@DESKTOP-QV1A45U:~$ cat /mnt/c/temp/env.txt
hi
adam@DESKTOP-QV1A45U:~$