mirror of
https://github.com/softprops/action-gh-release
synced 2026-10-01 01:01:32 +00:00
setup integration test
This commit is contained in:
1 parent
1a522d88d8
commit
845942e04a
555 files changed
+103819
-1
No files matched your search
+13
@@ -0,0 +1,13 @@
|
||||
'use strict';
|
||||
module.exports = opts => {
|
||||
opts = opts || {};
|
||||
|
||||
const env = opts.env || process.env;
|
||||
const platform = opts.platform || process.platform;
|
||||
|
||||
if (platform !== 'win32') {
|
||||
return 'PATH';
|
||||
}
|
||||
|
||||
return Object.keys(env).find(x => x.toUpperCase() === 'PATH') || 'Path';
|
||||
};
|
||||
Reference in new issue
Block a user