This commit is contained in:
parent
30a7e4ec16
commit
d69ca74f95
8
.github/workflows/checksums.yml
vendored
8
.github/workflows/checksums.yml
vendored
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user