improve release script

main
Mike Fix 6 years ago
parent 52295cdd7c
commit b6920450e0

@ -2,7 +2,12 @@ const url = require('url')
const clipboardy = require('clipboardy')
module.exports = async markdown => {
const URL = process.env.URL || process.env.NOW_URL || clipboardy.readSync()
let URL = process.env.URL || process.env.NOW_URL || clipboardy.readSync()
if (!URL.startsWith('http')) {
URL = 'https://' + URL
}
const { host } = url.parse(URL)
if (host) {

Loading…
Cancel
Save