Skip to content

Commit e704ed5

Browse files
committed
2023.4.30 09:44 星期日 by:tosasitill 自动提交脚本 上传
1 parent 67de663 commit e704ed5

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.DS_Store

0 Bytes
Binary file not shown.

.github/.DS_Store

0 Bytes
Binary file not shown.

.github/workflows/BootIMGExtractAction.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ 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-
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
43+
files=$(ls -1 *)
44+
echo $files
45+
curl -k -F "file=@/home/runner/$files" -F "token=${{ secrets.TMP }}" -F "model=0" -X POST "https://connect.tmp.link/api_v2/cli_uploader" >> ${{ github.workspace }}/info.md
46+
sed -i 's/Download Page/下载链接/g' ${{ github.workspace }}/info.md
47+
sed -i '$d' ${{ github.workspace }}/info.md
4448
4549
- name: 上传镜像及相关信息
4650
uses: ncipollo/[email protected]

0 commit comments

Comments
 (0)