更新 .gitea/workflows/7zip_update.yml
This commit is contained in:
@@ -23,20 +23,30 @@ jobs:
|
|||||||
|
|
||||||
- name: 下载并解压7zip
|
- name: 下载并解压7zip
|
||||||
run: |
|
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" \
|
-o "app/7z.exe" \
|
||||||
--fail --silent --show-error
|
--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" \
|
-o "7z.tar.xz" \
|
||||||
--fail --silent --show-error \
|
--fail --silent --show-error \
|
||||||
&& tar -xvf 7z.tar.xz -C tmp/ \
|
&& 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: 提交更改
|
- name: 提交更改
|
||||||
run: |
|
run: |
|
||||||
git config --local user.email "gitea-actions[bot]@users.noreply.nvme.cc"
|
git config --local user.email "gitea-actions[bot]@users.noreply.nvme.cc"
|
||||||
git config --local user.name "gitea-actions[bot]"
|
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 diff --cached --quiet || git commit -m "Update rules: $(TZ=Asia/Shanghai date +'%Y-%m-%d %H:%M:%S')"
|
||||||
git push
|
git push
|
||||||
Reference in New Issue
Block a user