From 1f233d3bfdf490f2ce5a20117c5df17f25d0a34f Mon Sep 17 00:00:00 2001 From: peterschmidt85 Date: Sun, 13 Aug 2023 16:58:46 +0200 Subject: [PATCH] Reverting: - [GitHub Actions] Restart the `dstack-stgn` Space --- .github/workflows/build.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f832a6c04..87266846d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -128,6 +128,18 @@ jobs: VERSION=$((${{ github.run_number }} + 150)) echo $VERSION | aws s3 cp - s3://get-dstack/stgn-cli/latest-version --acl public-read + restart-hf-space-master: + runs-on: ubuntu-latest + needs: + - update-get-dstack-master + env: + HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }} + steps: + - name: Restart the `dstack-stgn` Space + run: | + pip install huggingface_hub + python -c "from huggingface_hub import HfApi; hf_api = HfApi(); hf_api.pause_space('dstackai/dstack-stgn'); hf_api.restart_space('dstackai/dstack-stgn');" + runner-test-master: defaults: run: