LocalAI/.github/workflows/bump_deps.yaml

62 lines
2.0 KiB
YAML
Raw Normal View History

2023-05-04 13:01:29 +00:00
name: Bump dependencies
on:
schedule:
- cron: 0 20 * * *
workflow_dispatch:
jobs:
bump:
strategy:
fail-fast: false
matrix:
include:
- repository: "ggerganov/llama.cpp"
variable: "CPPLLAMA_VERSION"
branch: "master"
2023-05-09 09:43:50 +00:00
- repository: "ggerganov/whisper.cpp"
variable: "WHISPER_CPP_VERSION"
branch: "master"
- repository: "PABannier/bark.cpp"
variable: "BARKCPP_VERSION"
branch: "main"
- repository: "leejet/stable-diffusion.cpp"
variable: "STABLEDIFFUSION_GGML_VERSION"
branch: "master"
- repository: "mudler/go-stable-diffusion"
variable: "STABLEDIFFUSION_VERSION"
branch: "master"
- repository: "mudler/go-piper"
variable: "PIPER_VERSION"
branch: "master"
2023-05-04 13:01:29 +00:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
2023-05-04 13:01:29 +00:00
- name: Bump dependencies 🔧
id: bump
2023-05-04 13:01:29 +00:00
run: |
2023-05-04 13:04:41 +00:00
bash .github/bump_deps.sh ${{ matrix.repository }} ${{ matrix.branch }} ${{ matrix.variable }}
{
echo 'message<<EOF'
cat "${{ matrix.variable }}_message.txt"
echo EOF
} >> "$GITHUB_OUTPUT"
{
echo 'commit<<EOF'
cat "${{ matrix.variable }}_commit.txt"
echo EOF
} >> "$GITHUB_OUTPUT"
rm -rfv ${{ matrix.variable }}_message.txt
rm -rfv ${{ matrix.variable }}_commit.txt
2023-05-04 13:01:29 +00:00
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
2023-05-04 13:01:29 +00:00
with:
token: ${{ secrets.UPDATE_BOT_TOKEN }}
push-to-fork: ci-forks/LocalAI
2023-05-04 13:08:20 +00:00
commit-message: ':arrow_up: Update ${{ matrix.repository }}'
title: 'chore: :arrow_up: Update ${{ matrix.repository }} to `${{ steps.bump.outputs.commit }}`'
2023-05-04 13:08:20 +00:00
branch: "update/${{ matrix.variable }}"
body: ${{ steps.bump.outputs.message }}
2023-05-04 13:01:29 +00:00
signoff: true