ci: fuck gitea
Some checks failed
Generate Checksums / checksums (push) Failing after 0s

This commit is contained in:
耗子 2025-02-28 01:34:09 +08:00
parent 30a7e4ec16
commit d69ca74f95
Signed by: haozi
GPG Key ID: C964D7226D045DAA

View File

@ -10,19 +10,13 @@ jobs:
checksums: checksums:
runs-on: cn runs-on: cn
steps: steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Generate checksums - name: Generate checksums
run: | run: |
curl https://git.haozi.net
set -e set -e
git lfs install --local git lfs install --local
git remote set-url origin "https://ci:${{ secrets.CI_PASSWORD }}@${{ github.server_url }}/${{ github.repository }}" 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 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 git checkout ${{ github.ref }}
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 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