workflow: optimize
All checks were successful
Generate Checksums / checksums (push) Successful in 48s

This commit is contained in:
耗子 2025-02-28 02:24:17 +08:00
parent 0fdd759e32
commit 8992c326a5
Signed by: haozi
GPG Key ID: C964D7226D045DAA

View File

@ -4,8 +4,6 @@ on:
branches: branches:
- main - main
pull_request: pull_request:
permissions:
contents: write
jobs: jobs:
checksums: checksums:
runs-on: cn runs-on: cn
@ -15,11 +13,11 @@ jobs:
set -e set -e
git config --global credential.helper store git config --global credential.helper store
echo "https://ci:${{ secrets.CI_PASSWORD }}@git.haozi.net" > ~/.git-credentials echo "https://ci:${{ secrets.CI_PASSWORD }}@git.haozi.net" > ~/.git-credentials
git clone --depth 1 ${{ github.server_url }}/${{ github.repository }}.git /tmp/repo git clone --depth 1 ${{ github.server_url }}/${{ github.repository }}.git ${{ github.workspace }}/repo
cd /tmp/repo cd ${{ github.workspace }}/repo
git checkout ${{ github.ref_name }} git checkout ${{ github.ref_name }}
git config lfs.${{ github.server_url }}/${{ github.repository }}.git/info/lfs.locksverify true
git lfs install --local git lfs install --local
git config lfs.${{ github.server_url }}/${{ github.repository }}.git/info/lfs.locksverify true
git lfs pull git lfs pull
IFS=$'\n' IFS=$'\n'
for file in $(git ls-files | grep "^panel/" | grep -v ".sha256$" | grep -v ".txt$"); do for file in $(git ls-files | grep "^panel/" | grep -v ".sha256$" | grep -v ".txt$"); do