ci: update
Some checks failed
Generate Checksums / checksums (push) Has been cancelled

This commit is contained in:
耗子 2025-02-28 00:42:45 +08:00
parent b7686f1639
commit a4e8e23768
Signed by: haozi
GPG Key ID: C964D7226D045DAA

View File

@ -11,16 +11,22 @@ jobs:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
ref: ${{ github.head_ref }}
lfs: true lfs: true
- name: Generate checksums - name: Generate checksums
run: | run: |
set -e set -e
git lfs install --local
# disable credentials by actions/checkout for LFS endpoints
git -c "http.${GITHUB_SERVER_URL}/storage/lfs/.extraHeader=" 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
filename=$(basename "$file"); filename=$(basename "$file");
sha256sum -b "$file" | sed "s|$file|$filename|" > "${file}.sha256"; sha256sum -b "$file" | sed "s|$file|$filename|" > "${file}.sha256";
done done
unset IFS
- name: Commit changes - name: Commit changes
uses: actions/git-auto-commit-action@v5 uses: actions/git-auto-commit-action@v5
with: with:
commit_message: "chore: update checksum files" commit_message: "chore: update checksums"
file_pattern: "*.sha256"