Skip to content

Commit

Permalink
CI: remove onedrive hacks
Browse files Browse the repository at this point in the history
Signed-off-by: Tianling Shen <[email protected]>
  • Loading branch information
1715173329 committed Jun 16, 2023
1 parent 5c65211 commit aeb5434
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 73 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/update-mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,6 @@ jobs:
make download -j8
find dl -size -1024c -exec rm -f {} \;
- name: Fetch Cached Uploaded Files List
uses: actions/cache@v3
with:
path: "uploaded-files"
key: immortalwrt-mirror-uploaded-${{ matrix.branch }}-${{ github.run_id }}
restore-keys: |
immortalwrt-mirror-uploaded-
- name: Fetch Cached Uploader Keys
uses: actions/cache@v3
with:
Expand Down Expand Up @@ -95,11 +87,10 @@ jobs:
UPLOADER_TYPE: "onedrive"
UPLOADER_CONF: "uploader.json"
run: |
./uploader-cache/detect-upload-files.sh
[ "$(ls -A "package-sources"/* | wc -l)" -gt "0" ] || exit 0
mkdir -p package-sources
for i in $(cat "sourcelist"); do mv "immortalwrt/dl/$i" "package-sources/"; done
[ -f "uploader-keys/$UPLOADER_TYPE.json" ] && cp -f "uploader-keys/$UPLOADER_TYPE.json" "$UPLOADER_CONF" || ./onedrive-uploader/gen-onedriveconf.sh
./onedrive-uploader/OneDriveUploader -f -c "$UPLOADER_CONF" -s "package-sources" -r "/" -skip
./uploader-cache/gen-downloaded-hash.sh
[ -d "uploader-keys" ] || mkdir -p "uploader-keys"
cp -f "$UPLOADER_CONF" "uploader-keys/$UPLOADER_TYPE.json"
Expand Down
34 changes: 0 additions & 34 deletions uploader-cache/detect-upload-files.sh

This file was deleted.

28 changes: 0 additions & 28 deletions uploader-cache/gen-downloaded-hash.sh

This file was deleted.

0 comments on commit aeb5434

Please sign in to comment.