Skip to content

Commit

Permalink
Update lib/parse_config.js
Browse files Browse the repository at this point in the history
Co-Authored-By: Sukka <[email protected]>
  • Loading branch information
zhangnew and SukkaW committed Mar 16, 2020
1 parent fa854cf commit d913a40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ deploy:
- Defaults to `coding-pages` on Coding.net.
- Otherwise defaults to `master`.
- **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).
- **token_name** coding.net needs token name and token to authenticate. [More details](#deploy-with-token)
- **token_name**: Only valid for coding.net, coding.net needs token name and token to authenticate. [More details](#deploy-with-token)
- **repo_name**: Unique name when deploying to multiple repositories.
* Example:
``` yaml
Expand Down
2 changes: 1 addition & 1 deletion lib/parse_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function parseObjRepo(repo) {
} else {
userToken = configToken;
}
if (token_name && repoUrl.host === 'e.coding.net') {
if (token_name && repoUrl.host.includes('coding.net')) {
repoUrl.username = token_name;
repoUrl.password = userToken;
} else {
Expand Down

0 comments on commit d913a40

Please sign in to comment.