Skip to content

[fix]: [CI-24311]: Create missing Action output dir on Windows - #62

Open
Bsroy475 wants to merge 1 commit into
mainfrom
CI-24311
Open

Bsroy475 wants to merge 1 commit into
mainfrom
CI-24311

Conversation

@Bsroy475

@Bsroy475 Bsroy475 commented Sep 9, 2026

Copy link
Copy Markdown

Summary

  • GitHub Action steps on Windows failed after the action itself succeeded: the generated output variables step opened DRONE_OUTPUT without creating the parent directory (FileNotFoundError on C:/Windows/TEMP/engine/...-output.env).
  • Create that directory before write: os.makedirs in the Windows Python export script, and MkdirAll in Execer so Linux echo > file is covered too.

Ticket

CI-24311

@Bsroy475
Bsroy475 requested a review from maanavshah September 9, 2026 17:35
Comment thread plugin/github/execer.go
Comment on lines +44 to +47
if err := ensureOutputFileDir(e.OutputFile); err != nil {
return err
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar bug could be seen here too- plugin/bitrise/bitrise.go at line 61. This has the same missing-parent-dir problem as the current GitHub Action output file did as godotenv.Write will fail here too if the directory doesn't exist.
Can we fix that too as a follow up if possible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants