2024-05-08 22:31:27 +00:00
|
|
|
name: Check if checksums are up-to-date
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: 0 20 * * *
|
|
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
|
|
checksum_check:
|
2024-05-08 22:51:57 +00:00
|
|
|
runs-on: arc-runner-set
|
2024-05-08 22:31:27 +00:00
|
|
|
steps:
|
2024-05-09 09:33:16 +00:00
|
|
|
- name: Force Install GIT latest
|
|
|
|
run: |
|
|
|
|
sudo apt-get update \
|
|
|
|
&& sudo apt-get install -y software-properties-common \
|
|
|
|
&& sudo apt-get update \
|
|
|
|
&& sudo add-apt-repository -y ppa:git-core/ppa \
|
|
|
|
&& sudo apt-get update \
|
|
|
|
&& sudo apt-get install -y git
|
2024-05-08 22:31:27 +00:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
2024-05-08 22:55:48 +00:00
|
|
|
sudo apt-get update
|
2024-05-08 22:57:22 +00:00
|
|
|
sudo apt-get install -y pip wget
|
2024-07-12 19:54:08 +00:00
|
|
|
sudo pip install --upgrade pip
|
2024-05-08 22:31:27 +00:00
|
|
|
pip install huggingface_hub
|
2024-05-08 22:34:56 +00:00
|
|
|
- name: 'Setup yq'
|
2024-11-26 08:49:29 +00:00
|
|
|
uses: dcarbone/install-yq-action@v1.3.1
|
2024-05-08 22:34:56 +00:00
|
|
|
with:
|
2024-07-12 19:54:08 +00:00
|
|
|
version: 'v4.44.2'
|
2024-05-08 22:34:56 +00:00
|
|
|
download-compressed: true
|
|
|
|
force: true
|
2024-05-08 22:42:48 +00:00
|
|
|
|
2024-05-08 22:31:27 +00:00
|
|
|
- name: Checksum checker 🔧
|
|
|
|
run: |
|
2024-05-08 22:42:48 +00:00
|
|
|
export HF_HOME=/hf_cache
|
|
|
|
sudo mkdir /hf_cache
|
|
|
|
sudo chmod 777 /hf_cache
|
2024-05-08 22:31:27 +00:00
|
|
|
bash .github/checksum_checker.sh gallery/index.yaml
|
|
|
|
- name: Create Pull Request
|
2024-09-10 01:52:16 +00:00
|
|
|
uses: peter-evans/create-pull-request@v7
|
2024-05-08 22:31:27 +00:00
|
|
|
with:
|
|
|
|
token: ${{ secrets.UPDATE_BOT_TOKEN }}
|
|
|
|
push-to-fork: ci-forks/LocalAI
|
|
|
|
commit-message: ':arrow_up: Checksum updates in gallery/index.yaml'
|
2024-07-26 06:46:57 +00:00
|
|
|
title: 'chore(model-gallery): :arrow_up: update checksum'
|
2024-05-08 22:31:27 +00:00
|
|
|
branch: "update/checksum"
|
|
|
|
body: Updating checksums in gallery/index.yaml
|
2024-05-08 22:34:56 +00:00
|
|
|
signoff: true
|