diff --git a/.github/workflows/checksums.yml b/.github/workflows/checksums.yml index 0afdcc3..0be6bfb 100644 --- a/.github/workflows/checksums.yml +++ b/.github/workflows/checksums.yml @@ -10,19 +10,13 @@ jobs: checksums: runs-on: cn steps: - - name: Checkout repository - uses: actions/checkout@v4 - name: Generate checksums run: | - curl https://git.haozi.net set -e git lfs install --local git remote set-url origin "https://ci:${{ secrets.CI_PASSWORD }}@${{ github.server_url }}/${{ github.repository }}" git config lfs.https://ci:${{ secrets.CI_PASSWORD }}@${{ github.server_url }}/${{ github.repository }}.git/info/lfs.locksverify true - # disable credentials by actions/checkout for LFS endpoints - AUTH=$(git config --local http.${{ github.server_url }}/.extraheader) - git config --local --unset http.${{ github.server_url }}/.extraheader - git config --local http.${{ github.server_url }}/${{ github.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH" + git checkout ${{ github.ref }} git lfs pull IFS=$'\n' for file in $(git ls-files | grep "^panel/" | grep -v ".sha256$" | grep -v ".txt$"); do