Skip to content

Commit 3e41781

Browse files
committed
Pass github credentials to tdlib/upgrade.sh
1 parent 3cc146a commit 3e41781

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

‎main.js‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2094,7 +2094,11 @@ function processPrivateCommand (botId, bot, msg, command, commandArgsRaw) {
20942094
case '/upgrade_tdlib': {
20952095
build.tasks.push({
20962096
name: 'upgradeTdlib',
2097-
script: 'tdlib/upgrade.sh'
2097+
script: 'tdlib/upgrade.sh',
2098+
args: [
2099+
settings.github.username,
2100+
settings.github.access_token
2101+
]
20982102
});
20992103
break;
21002104
}

‎settings.sample.json‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,9 @@
4444
"verifier": {
4545
"production": "bot token of verifier bot to run on production machine"
4646
}
47+
},
48+
"github": {
49+
"username": "GitHub bot username",
50+
"access_token": "GitHub bot access_token"
4751
}
4852
}

0 commit comments

Comments
 (0)