Skip to content

Commit 67de663

Browse files
committed
2023.4.29 10:22 星期六 commit message
1 parent d614d3d commit 67de663

File tree

4 files changed

+1
-21
lines changed

4 files changed

+1
-21
lines changed

.DS_Store

0 Bytes
Binary file not shown.

.github/.DS_Store

0 Bytes
Binary file not shown.

.github/workflows/BootIMGExtractAction.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ jobs:
4040
cd ~/Firmware_extractor/out
4141
if [ -f "init_boot.img" ]; then rm boot.img; fi
4242
du -h --total *.img | sed 's/^/提取镜像大小: /' | head -n 1 >> ${{ github.workspace }}/info.md
43-
chmod +x upload-img.sh
44-
./upload-img.sh
43+
file_type=$(file ~/Firmware_extractor/out/*.img | grep -o "boot\|init_boot"); if [[ $file_type == "boot" ]]; then curl -k -F "file=@/home/runner/Firmware_extractor/out/boot.img" -F "token=${{ secrets.TMP }}" -F "model=0" -X POST "https://connect.tmp.link/api_v2/cli_uploader" >> ${{ github.workspace }}/info.md; elif [[ $file_type == "init_boot" ]]; then curl -k -F "file=@/home/runner/Firmware_extractor/out/init_boot.img" -F "token=${{ secrets.TMP }}" -F "model=0" -X POST "https://connect.tmp.link/api_v2/cli_uploader" >> ${{ github.workspace }}/info.md; else echo "Error: Invalid file type"; fi
4544
4645
- name: 上传镜像及相关信息
4746
uses: ncipollo/[email protected]

upload-img.sh

-19
This file was deleted.

0 commit comments

Comments
 (0)