Skip to content

Commit ebcd10d

Browse files
committed
ci: manually update deps
1 parent 8856429 commit ebcd10d

File tree

3 files changed

+51
-32
lines changed

3 files changed

+51
-32
lines changed

.github/bump_deps.sh

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
set -xe
3+
REPO=$1
4+
BRANCH=$2
5+
VAR=$3
6+
7+
LAST_COMMIT=$(curl -s -H "Accept: application/vnd.github.VERSION.sha" "https://api.github.com/repos/$REPO/commits/$BRANCH")
8+
9+
sed -i Makefile -e "s/$VAR?=.*/$VAR?=$LAST_COMMIT/"

.github/workflows/bump_deps.yaml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Bump dependencies
2+
on:
3+
schedule:
4+
- cron: 0 20 * * *
5+
workflow_dispatch:
6+
jobs:
7+
bump:
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
include:
12+
- repository: "go-skynet/go-gpt4all-j.cpp"
13+
variable: "GOGPT4ALLJ_VERSION"
14+
branch: "master"
15+
- repository: "go-skynet/go-llama.cpp"
16+
variable: "GOLLAMA_VERSION"
17+
branch: "master"
18+
- repository: "go-skynet/go-gpt2.cpp"
19+
variable: "GOGPT2_VERSION"
20+
branch: "master"
21+
- repository: "donomii/go-rwkv.cpp"
22+
variable: "RWKV_VERSION"
23+
branch: "main"
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v3
27+
- name: Bump dependencies 🔧
28+
run: |
29+
bash .github/bump_deps.sh ${{ matrix.repo }} ${{ matrix.branch }} ${{ matrix.variable }}
30+
- name: Create Pull Request
31+
uses: peter-evans/create-pull-request@v5
32+
with:
33+
token: ${{ secrets.UPDATE_BOT_TOKEN }}
34+
push-to-fork: ci-forks/LocalAI
35+
commit-message: ':arrow_up: Update ${{ matrix.repo }}'
36+
title: ':arrow_up: Update ${{ matrix.repo }}'
37+
body: Bump of ${{ matrix.repo }} version
38+
signoff: true
39+
40+
41+

renovate.json

+1-32
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,4 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": ["config:base"],
4-
"labels": ["PR: Dependency ⬆️", "repo automation 🤖"],
5-
"regexManagers": [
6-
{
7-
"fileMatch": ["^Makefile$"],
8-
"matchStrings": ["GOGPT4ALLJ_VERSION?=(?<currentDigest>.*)\\n"],
9-
"datasourceTemplate": "git-refs",
10-
"depNameTemplate": "https://github.com/go-skynet/go-gpt4all-j.cpp.git",
11-
"currentValueTemplate": "master"
12-
},
13-
{
14-
"fileMatch": ["^Makefile$"],
15-
"matchStrings": ["GOLLAMA_VERSION?=(?<currentDigest>.*)\\n"],
16-
"datasourceTemplate": "git-refs",
17-
"depNameTemplate": "https://github.com/go-skynet/go-llama.cpp.git",
18-
"currentValueTemplate": "master"
19-
},
20-
{
21-
"fileMatch": ["^Makefile$"],
22-
"matchStrings": ["GOGPT2_VERSION?=(?<currentDigest>.*)\\n"],
23-
"datasourceTemplate": "git-refs",
24-
"depNameTemplate": "https://github.com/go-skynet/go-gpt2.cpp.git",
25-
"currentValueTemplate": "master"
26-
},
27-
{
28-
"fileMatch": ["^Makefile$"],
29-
"matchStrings": ["RWKV_VERSION?=(?<currentDigest>.*)\\n"],
30-
"datasourceTemplate": "git-refs",
31-
"depNameTemplate": "https://github.com/donomii/go-rwkv.cpp.git",
32-
"currentValueTemplate": "main"
33-
}
34-
]
3+
"extends": ["config:base"]
354
}

0 commit comments

Comments
 (0)