mirror of
https://github.com/jht5945/buildj.git
synced 2025-12-29 18:30:05 +08:00
add BUILDJ_AUTH_TOKEN
This commit is contained in:
@@ -146,6 +146,9 @@ pub fn get_extract_dir_name_by_file_name(file_name: &str) -> Option<String> {
|
|||||||
|
|
||||||
pub fn get_tool_package_secret() -> XResult<String> {
|
pub fn get_tool_package_secret() -> XResult<String> {
|
||||||
if (*AUTH_TOKEN).is_some() {
|
if (*AUTH_TOKEN).is_some() {
|
||||||
|
if *VERBOSE {
|
||||||
|
print_message(MessageType::DEBUG, "Use auth token from env 'BUILDJ_AUTH_TOKEN'");
|
||||||
|
}
|
||||||
return Ok((*AUTH_TOKEN).as_ref().unwrap().clone());
|
return Ok((*AUTH_TOKEN).as_ref().unwrap().clone());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user