Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
chenmozhijin committed Sep 14, 2024
1 parent 8ea1af5 commit edaf21d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/build_helper/prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def prepare() -> None:
logger.info("%s生成源代码归档")
os.makedirs(os.path.join(paths.uploads, cfg_name), exist_ok=True)
tar_path = os.path.join(paths.uploads, cfg_name, "openwrt-source.tar.xz")
with tarfile.open(tar_path, "w:xz", preset=9) as tar:
with tarfile.open(tar_path, "w:xz") as tar:
tar.add(openwrt.path, arcname="openwrt")
uploader.add(f"{cfg_name}-openwrt-source", tar_path,retention_days=1,compression_level=0)

Expand Down
10 changes: 5 additions & 5 deletions .github/build_helper/utils/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ def add(self,
},
}
if if_no_files_found is not None:
action['if-no-files-found'] = if_no_files_found
action["with"]['if-no-files-found'] = if_no_files_found
if retention_days is not None:
action['retention-days'] = retention_days
action["with"]['retention-days'] = retention_days
if compression_level is not None:
action['compression-level'] = compression_level
action["with"]['compression-level'] = compression_level
if overwrite is not None:
action['overwrite'] = overwrite
action["with"]['overwrite'] = overwrite
if include_hidden_files is not None:
action['include-hidden-files'] = include_hidden_files
action["with"]['include-hidden-files'] = include_hidden_files
self.action['runs']['steps'].append(action)

def save(self) -> None:
Expand Down

0 comments on commit edaf21d

Please sign in to comment.