Skip to content

Commit

Permalink
Correctly import path
Browse files Browse the repository at this point in the history
  • Loading branch information
mgautierfr committed Dec 18, 2023
1 parent 68bc2b9 commit df6328c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions actions/dl_deps_archive/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const tc = require('@actions/tool-cache');
const core = require('@actions/core');
import * as path from 'path'
const path = require('path');
const os = require('os');

function getInput(name, dflt) {
const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`];
Expand Down Expand Up @@ -42,7 +43,9 @@ async function run() {
}
}

addLocalPath('C:\\Program Files\\Git\\usr\\bin');
if (os.platform() === 'win32') {
addLocalPath('C:\\Program Files\\Git\\usr\\bin');
}
core.setCommandEcho(true);

run()

0 comments on commit df6328c

Please sign in to comment.