resolveGitHubSummaryFile function

File? resolveGitHubSummaryFile()

Resolves the GitHub Actions Step Summary markdown file from the environment, or null if not running inside GitHub Actions.

Implementation

File? resolveGitHubSummaryFile() {
  final path = Platform.environment['GITHUB_STEP_SUMMARY'];
  if (path == null || path.isEmpty) return null;
  return File(path);
}