Skip to content

Commit

Permalink
CI: Clear unnecessary time information
Browse files Browse the repository at this point in the history
Signed-off-by: sekaiacg <[email protected]>
  • Loading branch information
sekaiacg committed Mar 12, 2023
1 parent 17bc7c7 commit 1684538
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-erofs-utils.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Version
if: github.event.inputs.release == 'true' && github.event.inputs.release != 'false' && !cancelled()
run: |
ARTIFACT_DIR=$(ls); for name in ${ARTIFACT_DIR}; do zip -9 -jy "${name}.zip" ${name}/*.erofs > /dev/null 2>&1; done;
ARTIFACT_DIR=$(ls); for name in ${ARTIFACT_DIR}; do touch -c -d "2009-01-01 00:00:00" ${name}/*; zip -9 -jy "${name}.zip" ${name}/*.erofs > /dev/null 2>&1; done;
ls -lahR
- name: Upload release
Expand Down
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ build()
echo "复制文件中..."
[[ ! -d "$TARGET_DIR_PATH" ]] && mkdir -p ${TARGET_DIR_PATH}
cp -af $BUILD/*.erofs ${TARGET_DIR_PATH}
touch -c -d "2009-01-01 00:00:00" ${TARGET_DIR_PATH}/*
echo "编译成功: ${TARGE_DIR_NAME}"
else
echo "error"
Expand Down

0 comments on commit 1684538

Please sign in to comment.