aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/restore.js
blob: 794f6a554b10c122b218b54968b81f649892e16e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);
}