mirror of
https://github.com/mudler/LocalAI.git
synced 2025-06-05 02:14:59 +00:00
ci: add checksum checker pipeline (#2274)
Signed-off-by: mudler <mudler@localai.io>
This commit is contained in:
parent
d651f390cd
commit
bc272d1e4b
2 changed files with 126 additions and 0 deletions
29
.github/workflows/checksum_checker.yaml
vendored
Normal file
29
.github/workflows/checksum_checker.yaml
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
name: Check if checksums are up-to-date
|
||||
on:
|
||||
schedule:
|
||||
- cron: 0 20 * * *
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
checksum_check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pip install huggingface_hub
|
||||
# yq
|
||||
VERSION=v4.43.1 BINARY=yq_linux_amd64 wget https://github.com/mikefarah/yq/releases/download/${VERSION}/${BINARY}.tar.gz -O - |\
|
||||
tar xz && sudo mv ${BINARY} /usr/bin/yq
|
||||
- name: Checksum checker 🔧
|
||||
run: |
|
||||
bash .github/checksum_checker.sh gallery/index.yaml
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v6
|
||||
with:
|
||||
token: ${{ secrets.UPDATE_BOT_TOKEN }}
|
||||
push-to-fork: ci-forks/LocalAI
|
||||
commit-message: ':arrow_up: Checksum updates in gallery/index.yaml'
|
||||
title: 'models(gallery): :arrow_up: update checksum'
|
||||
branch: "update/checksum"
|
||||
body: Updating checksums in gallery/index.yaml
|
||||
signoff: true
|
Loading…
Add table
Add a link
Reference in a new issue