Skip to content

Add build emebddings wokflow #1

Add build emebddings wokflow

Add build emebddings wokflow #1

name: Daily Build Embeddings
env:
DIFFUSERS_SLOW_IMPORT: yes
on:
push:
schedule:
- cron: "5 7 * * *" # every day at 07:05
# to run this workflow manually from the Actions tab
workflow_dispatch:
# Steps
# for i in list:
# git clone
# install
# build embeddings
on:

Check failure on line 19 in .github/workflows/build_embeddings.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build_embeddings.yml

Invalid workflow file

You have an error in your yaml syntax on line 19
workflow_call:
secrets:
hf_token:
required: false
token:
required: false
jobs:
matrix-job:
runs-on: ubuntu-latest
strategy:
max-parallel: 1 # run the matrix jobs sequentially
matrix:
include:
- lib: diffusers
doc_folder: 14
- lib: datasets
doc_folder: 20
- lib: transformers
doc_folder: 14
- lib: accelerate
doc_folder: 20
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Echo
run: echo ${{ matrix.lib }} ${{ matrix.doc_folder }}
cleanup-job:
needs: matrix-job
runs-on: ubuntu-latest
steps:
- name: Run cleanup steps
run: |
echo "Performing cleanup tasks"
# Add your cleanup commands here