workspace property
Directory?
workspace
The GitHub workspace directory.
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.
Implementation
Directory? get workspace {
final path = _env('GITHUB_WORKSPACE');
if (path == null) return null;
return Directory(path);
}