From 4bec0a40e0c5e48abaa6fa129cb5a7b5e23046d8 Mon Sep 17 00:00:00 2001 From: Hayk Martiros Date: Thu, 5 Jan 2023 07:44:53 +0000 Subject: [PATCH] Update hugging face space on push Topic: hf_playground_action --- .github/workflows/playground-update.yml | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/playground-update.yml diff --git a/.github/workflows/playground-update.yml b/.github/workflows/playground-update.yml new file mode 100644 index 0000000..e0ed869 --- /dev/null +++ b/.github/workflows/playground-update.yml @@ -0,0 +1,30 @@ +name: Update riffusion-playground space on hugging face + +on: + push: + branches: + - main + +jobs: + update: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + with: + repository: https://huggingface.co/spaces/riffusion/riffusion-playground + token: ${{ secrets.HF_RIFFUSION_TOKEN }} + submodules: true + + - name: Pull & update submodules recursively + run: | + git submodule update --init --recursive + git submodule update --recursive --remote + + - name: Commit + run: | + git config user.email "actions@github.com" + git config user.name "GitHub Actions - update submodules" + git add --all + git commit -m "Update submodules" || echo "No changes to commit" + git push