Skip to content

Commit

Permalink
Testing temp folder generation
Browse files Browse the repository at this point in the history
  • Loading branch information
nbhoski committed May 21, 2024
1 parent 6cecada commit 30d660f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugins/+ciplugins/+github/BuildSummaryPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

function runTaskGraph(plugin, pluginData)
[email protected](plugin, pluginData);
[fID, msg] = fopen(fullfile(tempdir ,"buildSummary" + getenv("GITHUB_RUN_ID") + ".json"), "w");
[fID, msg] = fopen(fullfile(tempdir ,"buildSummary_" + getenv("GITHUB_RUN_ID") + ".json"), "w");

if fID == -1
warning("ciplugins:github:BuildSummaryPlugin:UnableToOpenFile","Could not open a file for GitHub build summary table due to: %s", msg);
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ async function run() {
(cmd,args)=>exec.exec(cmd,args,execOptions),
startupOptions
);

let myArray: string[] = ["/tmp"];
await exec.exec("ls",myArray,execOptions)
const runId = process.env.GITHUB_RUN_ID;
let myArray: string[] = ["/tmp/buildSummary_" + runId];
await exec.exec("cat",myArray,execOptions)
}

run().catch((e) => {
Expand Down

0 comments on commit 30d660f

Please sign in to comment.