Skip to content

Commit 926c04d

Browse files
zhangnewSukkaW
andcommitted
Update lib/parse_config.js
Co-Authored-By: Sukka <[email protected]>
1 parent fa854cf commit 926c04d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ deploy:
6868
- Defaults to `coding-pages` on Coding.net.
6969
- Otherwise defaults to `master`.
7070
- **token**: Optional token value to authenticate with the repo. Prefix with `$` to read token from environment variable (recommended). Repo must be a http(s) url. [More details](#deploy-with-token).
71-
- **token_name** coding.net needs token name and token to authenticate. [More details](#deploy-with-token)
71+
- **token_name** only valid for coding.net, coding.net needs token name and token to authenticate. [More details](#deploy-with-token)
7272
- **repo_name**: Unique name when deploying to multiple repositories.
7373
* Example:
7474
``` yaml

lib/parse_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function parseObjRepo(repo) {
3131
} else {
3232
userToken = configToken;
3333
}
34-
if (token_name && repoUrl.host === 'e.coding.net') {
34+
if (token_name && repoUrl.host.includes('coding.net')) {
3535
repoUrl.username = token_name;
3636
repoUrl.password = userToken;
3737
} else {

0 commit comments

Comments
 (0)