mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-23 12:21:07 +07:00
16 lines
398 B
JavaScript
16 lines
398 B
JavaScript
|
module.exports = {
|
||
|
detect: function() {
|
||
|
return !!process.env.SEMAPHORE && !!process.env.SEMAPHORE_WORKFLOW_ID
|
||
|
},
|
||
|
|
||
|
configuration: function() {
|
||
|
console.log(' Semaphore 2.x CI Detected')
|
||
|
return {
|
||
|
service: 'semaphore2x',
|
||
|
branch: process.env.SEMAPHORE_GIT_BRANCH,
|
||
|
build: process.env.SEMAPHORE_WORKFLOW_ID,
|
||
|
commit: process.env.SEMAPHORE_GIT_SHA,
|
||
|
}
|
||
|
},
|
||
|
}
|