mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-26 21:33:06 +07:00
17 lines
320 B
JavaScript
17 lines
320 B
JavaScript
|
var git = require('../git')
|
||
|
|
||
|
module.exports = {
|
||
|
configuration: function() {
|
||
|
console.log(' No CI Detected. Using git/mercurial')
|
||
|
var branch = git.branch()
|
||
|
if (branch === 'HEAD') {
|
||
|
branch = 'master'
|
||
|
}
|
||
|
var head = git.head()
|
||
|
return {
|
||
|
commit: head,
|
||
|
branch: branch,
|
||
|
}
|
||
|
},
|
||
|
}
|