Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Commit

Permalink
Update sync-hugging.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ramon-victor authored Jul 19, 2023
1 parent 16d8d6a commit bd76f96
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/sync-hugging.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Sync with Hugging Face Hub
name: Sync with Hugging Face Hub and Update Port

on:
push:
Expand All @@ -9,6 +9,13 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2

- name: Update Port in config.json
run: |
sed -i 's/"port": [0-9]\+/"port": 7860/g' config.json
- name: Sync with Hugging Face
uses: nateraw/[email protected]
with:
Expand All @@ -17,3 +24,7 @@ jobs:
repo_type: space
space_sdk: docker
hf_token: ${{ secrets.HF_TOKEN }}

- name: Revert changes in config.json
run: |
git restore config.json

0 comments on commit bd76f96

Please sign in to comment.