mirror of
https://github.com/actions/setup-python.git
synced 2026-04-16 19:15:39 +02:00
Initial pass
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
module.exports = function (globalMiddleware, context) {
|
||||
return function (callback) {
|
||||
if (Array.isArray(callback)) {
|
||||
Array.prototype.push.apply(globalMiddleware, callback)
|
||||
} else if (typeof callback === 'function') {
|
||||
globalMiddleware.push(callback)
|
||||
}
|
||||
return context
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user