mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-23 12:21:07 +07:00
20 lines
493 B
JavaScript
20 lines
493 B
JavaScript
|
module.exports = {
|
||
|
detect: function() {
|
||
|
return !!process.env.SEMAPHORE && !!process.env.SEMAPHORE_REPO_SLUG
|
||
|
},
|
||
|
|
||
|
configuration: function() {
|
||
|
console.log(' Semaphore 1.x CI Detected')
|
||
|
return {
|
||
|
service: 'semaphore1x',
|
||
|
build:
|
||
|
process.env.SEMAPHORE_BUILD_NUMBER +
|
||
|
'.' +
|
||
|
process.env.SEMAPHORE_CURRENT_THREAD,
|
||
|
commit: process.env.REVISION,
|
||
|
branch: process.env.BRANCH_NAME,
|
||
|
slug: process.env.SEMAPHORE_REPO_SLUG,
|
||
|
}
|
||
|
},
|
||
|
}
|