From 6277cd6a2896ac3e25eecb2d21275b6facd294d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Fri, 28 Feb 2025 01:38:31 +0800 Subject: [PATCH] ci: fuck gitea --- .github/workflows/checksums.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/checksums.yml b/.github/workflows/checksums.yml index 0be6bfb..a749a40 100644 --- a/.github/workflows/checksums.yml +++ b/.github/workflows/checksums.yml @@ -13,10 +13,10 @@ jobs: - name: Generate checksums run: | 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 + git clone ${{ github.repository }} /tmp/repo + cd /tmp/repo git checkout ${{ github.ref }} + git lfs install --local git lfs pull IFS=$'\n' for file in $(git ls-files | grep "^panel/" | grep -v ".sha256$" | grep -v ".txt$"); do @@ -30,3 +30,4 @@ jobs: git config --global user.password "${{ secrets.GITHUB_TOKEN }}" git commit -m "chore: update checksums" || true git push origin ${{ github.ref }} + rm -rf /tmp/repo