Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 9, 2021. It is now read-only.

Commit 607048e

Browse files
committed
fix alias bug in travis script
1 parent 350488d commit 607048e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

scripts/now.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,17 @@ function deploy(context, sha) {
113113
const comment = url =>
114114
`### New Δ Now ${context} deployment complete\n- ✅ **Build Passed**\n- 🚀 **URL** : ${url}\n---\nNote: **This is autogenerated through travis-ci build**`;
115115
if (alias) {
116-
spawn(nowCli, ['alias', target_url, alias]);
116+
const args = [
117+
'alias',
118+
'--token',
119+
nowToken,
120+
'--team',
121+
'coderplex',
122+
'set',
123+
target_url,
124+
alias,
125+
];
126+
spawn(nowCli, args);
117127
axios
118128
.post(discordHook, {
119129
content: comment(`${alias} and https://coderplex.org`),

0 commit comments

Comments
 (0)