diff options
Diffstat (limited to '')
-rw-r--r-- | restore.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/restore.js b/restore.js new file mode 100644 index 0000000..794f6a5 --- /dev/null +++ b/restore.js @@ -0,0 +1,15 @@ +const os = require('os'); +const process = require('process'); + +const core = require('@actions/core'); + +try { + if (os.platform != 'win32') { + core.warning('Not going to restore PATH variable on ${os.platform}'); + process.exit(); + } + + core.exportVariable('PATH', process.env.ORIG_PATH); +} catch (error) { + core.setFailed(error.message); +} |