Add build emebddings wokflow #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
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 |