mirror of
https://github.com/Expand-sys/ccashfrontend
synced 2025-12-19 16:12:14 +11:00
30 lines
No EOL
951 B
JavaScript
30 lines
No EOL
951 B
JavaScript
var update_metadata = require('./modules/update-metadata')
|
|
var commit = require('./modules/commit')
|
|
var exec = require('./modules/exec')
|
|
|
|
if (update_metadata())
|
|
{
|
|
commit()
|
|
|
|
console.log()
|
|
console.log('========================================')
|
|
console.log('= Pushing changes =')
|
|
console.log('========================================')
|
|
console.log()
|
|
|
|
// Delete previous `update-metadata` remote branch
|
|
// (if it already exists)
|
|
if (exec('git ls-remote --heads origin update-metadata'))
|
|
{
|
|
console.log(exec('git push origin update-metadata --delete'))
|
|
}
|
|
|
|
// Push the local `update-metadata` branch to GitHub
|
|
console.log(exec('git push origin update-metadata'))
|
|
|
|
console.log()
|
|
console.log('==========================================')
|
|
console.log('= Pushed. Create Pull Request on GitHub. =')
|
|
console.log('==========================================')
|
|
console.log()
|
|
} |