更新 .gitea/workflows/app_update.yml
This commit is contained in:
@@ -16,7 +16,7 @@ jobs:
|
|||||||
|
|
||||||
- name: 创建目录结构
|
- name: 创建目录结构
|
||||||
run: |
|
run: |
|
||||||
mkdir -p app/
|
mkdir -p app/ tmp
|
||||||
|
|
||||||
- name: 下载并解压zellij
|
- name: 下载并解压zellij
|
||||||
run: |
|
run: |
|
||||||
@@ -27,10 +27,26 @@ jobs:
|
|||||||
# 解压出zellij
|
# 解压出zellij
|
||||||
tar -xvf zellij-x86_64-unknown-linux-musl.tar.gz -C app/
|
tar -xvf zellij-x86_64-unknown-linux-musl.tar.gz -C app/
|
||||||
|
|
||||||
|
- name: 下载并解压7zip
|
||||||
|
run: |
|
||||||
|
curl -L "https://www.7-zip.org/a/7z2501.exe" -o "app/7z.exe" --fail --silent --show-error
|
||||||
|
|
||||||
|
curl -L "https://www.7-zip.org/a/7z2501-linux-x64.tar.xz" -o "7z.tar.xz" --fail --silent --show-error \
|
||||||
|
&& tar -xvf 7z.tar.xz -C tmp/ \
|
||||||
|
&& mv tmp/7zz app/ \
|
||||||
|
&& rm -rf tmp/*
|
||||||
|
|
||||||
|
curl -L "https://www.7-zip.org/a/7z2501-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 -rf 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/zellij
|
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