Skip to content

Download and Extract mihomo_x86_64-openwrt-23.05.tar.gz #6

Download and Extract mihomo_x86_64-openwrt-23.05.tar.gz

Download and Extract mihomo_x86_64-openwrt-23.05.tar.gz #6

Workflow file for this run

name: Download and Extract mihomo_x86_64-openwrt-23.05.tar.gz
on:
workflow_dispatch: # 允许手动触发
jobs:
download-and-extract:
runs-on: ubuntu-latest
steps:
# 1. 检出代码
- name: Checkout repository
uses: actions/checkout@v3
# 2. 安装必要工具
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y curl tar
# 3. 下载文件
- name: Download tarball
run: |
curl -L -o mihomo_x86_64-openwrt-23.05.tar.gz https://github.com/morytyann/OpenWrt-mihomo/releases/download/v1.17.2/mihomo_x86_64-openwrt-23.05.tar.gz
# 4. 创建 abc 文件夹(如果不存在的话)
- name: Create abc directory
run: |
mkdir -p ./abc
# 5. 解压文件到 abc 目录
- name: Extract tarball to abc directory
run: |
tar -zxvf mihomo_x86_64-openwrt-23.05.tar.gz -C ./abc
# 6. 提交并推送更改(如果有)
- name: Commit and push changes
run: |
git config --local user.name "GitHub Actions Bot"
git config --local user.email "actions@github.com"
git add ./abc
git commit -m "Add extracted files to abc directory" || echo "No changes to commit"
git push