Every time we use core.exportVariable
which, as far as I know, is the canonical way to export a variable in @action/core
and, consequently, in github-script
, you get an error such as this one:
Warning: The
set-env
command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
That link leads to an explanation of environment files, which, well, are files. Problem is files do not seem to have such a great support in github-script
. There's the @actions/io
package, but there's no way to create a file with that.
So is there something I'm missing, or there is effectively no way to create an environment file form inside a github-script
step?