更新 .gitea/workflows/7zip_update.yml
This commit is contained in:
@@ -23,20 +23,30 @@ jobs:
|
||||
|
||||
- name: 下载并解压7zip
|
||||
run: |
|
||||
curl -L "https://github.com/ip7z/7zip/releases/download/latest/7z$7Z_VERSION.exe" \
|
||||
curl -L "https://www.7-zip.org/a/7z$7Z_VERSION-x86.exe" \
|
||||
-o "app/7z.exe" \
|
||||
--fail --silent --show-error
|
||||
|
||||
curl -L "https://github.com/ip7z/7zip/releases/download/latest/7z$7Z_VERSION-linux-x86.tar.xz" \
|
||||
curl -L "https://www.7-zip.org/a/7z$7Z_VERSION-linux-x64.tar.xz" \
|
||||
-o "7z.tar.xz" \
|
||||
--fail --silent --show-error \
|
||||
&& tar -xvf 7z.tar.xz -C tmp/ \
|
||||
&& mv tmp/7zz app/
|
||||
&& mv tmp/7zz app/ \
|
||||
&& rm tmp/*
|
||||
|
||||
curl -L "https://www.7-zip.org/a/7z$7Z_VERSION-linux-arm64.tar.xz" \
|
||||
-o "7z.tar.xz" \
|
||||
--fail --silent --show-error \
|
||||
&& tar -xvf 7z.tar.xz -C tmp/ \
|
||||
&& mv tmp/7zz app/7zz_arm64 \
|
||||
&& rm tmp/*
|
||||
|
||||
|
||||
|
||||
- name: 提交更改
|
||||
run: |
|
||||
git config --local user.email "gitea-actions[bot]@users.noreply.nvme.cc"
|
||||
git config --local user.name "gitea-actions[bot]"
|
||||
git add ./app
|
||||
git add ./app/
|
||||
git diff --cached --quiet || git commit -m "Update rules: $(TZ=Asia/Shanghai date +'%Y-%m-%d %H:%M:%S')"
|
||||
git push
|
||||
Reference in New Issue
Block a user