From 8992c326a5ae6287462307675a818248aaec68fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Fri, 28 Feb 2025 02:24:17 +0800 Subject: [PATCH] workflow: optimize --- .github/workflows/checksums.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/checksums.yml b/.github/workflows/checksums.yml index 8d84900..854c0ae 100644 --- a/.github/workflows/checksums.yml +++ b/.github/workflows/checksums.yml @@ -4,8 +4,6 @@ on: branches: - main pull_request: -permissions: - contents: write jobs: checksums: runs-on: cn @@ -15,11 +13,11 @@ jobs: set -e git config --global credential.helper store echo "https://ci:${{ secrets.CI_PASSWORD }}@git.haozi.net" > ~/.git-credentials - git clone --depth 1 ${{ github.server_url }}/${{ github.repository }}.git /tmp/repo - cd /tmp/repo + git clone --depth 1 ${{ github.server_url }}/${{ github.repository }}.git ${{ github.workspace }}/repo + cd ${{ github.workspace }}/repo git checkout ${{ github.ref_name }} - git config lfs.${{ github.server_url }}/${{ github.repository }}.git/info/lfs.locksverify true git lfs install --local + git config lfs.${{ github.server_url }}/${{ github.repository }}.git/info/lfs.locksverify true git lfs pull IFS=$'\n' for file in $(git ls-files | grep "^panel/" | grep -v ".sha256$" | grep -v ".txt$"); do